Documentation ¶
Index ¶
Constants ¶
View Source
const CheckSchemaExistsQuery = `
SELECT 1
FROM sqlite_master
WHERE type = 'table' AND name = 'schema_info';
`
View Source
const CreateTableSchema = `` /* 211-byte string literal not displayed */
View Source
const MarkSchemaCreatedQuery = `
CREATE TABLE schema_info (
id INTEGER PRIMARY KEY
);
INSERT INTO schema_info (id) VALUES (1);
`
Variables ¶
This section is empty.
Functions ¶
func New ¶
func New(opts ...CallOptions) *sqliteds
New returns a new local storer if path is empty, it will default to $HOME/memory/memory.db
Types ¶
type CallOptions ¶
type CallOptions struct {
// contains filtered or unexported fields
}
CallOptions provides a way to set options.
type DTO ¶
type DTO struct {
Path string `json:"path"`
}
func (*DTO) ToDataSource ¶
func (d *DTO) ToDataSource() datasource.DataSourcer
Click to show internal directories.
Click to hide internal directories.