Discover Packages
github.com/canonical/candid
store
sqlstore
package
Version:
v1.10.1
Opens a new window with list of versions in this module.
Published: Jun 11, 2021
License: AGPL-3.0
Opens a new window with license information.
Imports: 20
Opens a new window with list of imports.
Imported by: 2
Opens a new window with list of known importers.
Documentation
Documentation
¶
NewBackend creates a new store.Backend implementation using the
given driverName and *sql.DB. The driverName must match the value
used to open the database.
Closing the returned Backend will also close db.
type Params struct {
ConnectionString string `yaml:"connection-string"`
}
Params holds the specification for the parameters
used in the config file.
NewBackend implements store.BackendFactory.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.