sqliteds

package
v0.0.0-...-e6ff8ee Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 27, 2023 License: MIT Imports: 9 Imported by: 0

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.

func WithPath

func WithPath(path string) CallOptions

WithPath sets the path option.

type DTO

type DTO struct {
	Path string `json:"path"`
}

func (*DTO) GetType

func (d *DTO) GetType() string

func (*DTO) ToDataSource

func (d *DTO) ToDataSource() datasource.DataSourcer

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL