Documentation ¶
Index ¶
- Variables
- func Init(dbPath string, key []byte, opts SQLCipherDatastoreOptions, conf *config.Config) error
- func IsInitialized(dbPath string, key []byte, opts SQLCipherDatastoreOptions) (bool, error)
- func KeystoreFromDatastore(ds datastore.Datastore) keystore.Keystore
- func NewNamespacedDatastore(child ds.Datastore, prefix ds.Key) ds.Batching
- func NewSQLCipherDatastore(driver, dbPath, table string, key []byte, opts SQLCipherDatastoreOptions) (*sqlds.Datastore, error)
- func NewSQLiteDatastore(driver, dbPath, table string) (*sqlds.Datastore, error)
- func Open(dbPath string, key []byte, opts SQLCipherDatastoreOptions) (repo.Repo, error)
- func OpenSQLCipherDatastore(driver, dbPath, table string, key []byte, opts SQLCipherDatastoreOptions) (*sqlds.Datastore, error)
- type SQLCipherDatastoreOptions
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrDatabaseNotFound = errors.New("database not found")
)
Functions ¶
func IsInitialized ¶
func IsInitialized(dbPath string, key []byte, opts SQLCipherDatastoreOptions) (bool, error)
func KeystoreFromDatastore ¶
func NewNamespacedDatastore ¶
func NewSQLCipherDatastore ¶
func NewSQLiteDatastore ¶
func OpenSQLCipherDatastore ¶
Types ¶
type SQLCipherDatastoreOptions ¶ added in v1.1.4
Click to show internal directories.
Click to hide internal directories.