Documentation
¶
Overview ¶
Package memory provides a memory based database configuration (by actually providing a SQLite3 database with memory backend).
Any data stored in this type of database will be lost after the database is closed.
Index ¶
Constants ¶
const Type database.Type = "memory"
Type of memory database configurations.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
// contains filtered or unexported fields
}
Config represents the memory database configuration.
func NewConfig ¶
func NewConfig(options ...sqlite.ConfigSetter) *Config
NewConfig creates a new memory database configuration using the given options.
func (*Config) DriverName ¶
DriverName gets the name of the sql driver providing access to the database represented by this configuration.
func (*Config) Name ¶ added in v0.0.2
Name gets the name of the database represented by this configuration.
func (*Config) RedactedDSN ¶
DSN get the Data Source Name with any sensitive data redacted.
func (*Config) SchemaScripts ¶
SchemaScripts gets the schema updated scripts to be applied to the database during schema initialization or a schema update.