Documentation ¶
Index ¶
- Variables
- func Init(dbPath string, key []byte, conf *config.Config) error
- func IsInitialized(dbPath string, key []byte) (bool, error)
- func KeystoreFromDatastore(ds datastore.Datastore, namespace string) keystore.Keystore
- func NewNamespacedDatastore(child ds.Datastore, prefix ds.Key) ds.Batching
- func NewSQLCipherDatastore(driver, dbPath, table string, key []byte) (*sqlds.Datastore, error)
- func NewSQLiteDatastore(driver, url, table string) (*sqlds.Datastore, error)
- func Open(dbPath string, key []byte) (repo.Repo, error)
- func OpenSQLCipherDatastore(driver, dbPath, table string, key []byte) (*sqlds.Datastore, error)
- type Queries
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrDatabaseNotFound = errors.New("database not found") ErrTableNotFound = errors.New("table not found") )
Functions ¶
func KeystoreFromDatastore ¶
func NewNamespacedDatastore ¶
func NewSQLCipherDatastore ¶
func NewSQLiteDatastore ¶
Types ¶
type Queries ¶
type Queries struct {
// contains filtered or unexported fields
}
Queries are the sqlite queries for a given table.
func NewQueries ¶
NewQueries creates a new sqlite set of queries for the passed table
func (Queries) Offset ¶
Offset returns the sqlite query fragment for returning rows from a given offset.
Click to show internal directories.
Click to hide internal directories.