code: func New(path, dsnQuery string, memory bool) (*DB, error) {
  	q, err := url.ParseQuery(dsnQuery)
  	if err != nil {
  		return nil, err
  	}
  	if memory {
  		q.Set("mode", "memory")
  		q.Set("cache", "shared")
  	}
  
  	if !strings.HasPrefix(path, "file:") {
  		path = fmt.Sprintf("file:%s", path)
  	}
  
  	var fqdsn string
  	if len(q) > 0 {
  		fqdsn = fmt.Sprintf("%s?%s", path, q.Encode())
  	} else {
  		fqdsn = path
  	}
  
  	return &DB{
  		path:     path,
  		dsnQuery: dsnQuery,
  		memory:   memory,
  		fqdsn:    fqdsn,
  	}, nil
  }
docs: // New returns an instance of the database at path. If the database
  // has already been created and opened, this database will share
  // the data of that database when connected.