sqlite

package
v0.0.0-...-06831c0 Latest Latest
Warning

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

Go to latest
Published: Dec 18, 2024 License: Apache-2.0 Imports: 28 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// base for our schemas
	SCHEMA = "sqlite3"
)

Variables

This section is empty.

Functions

func Connect

func Connect(ctx context.Context, dsn string) (_ store.Storer, err error)

func ConnectInMemory

func ConnectInMemory(ctx context.Context) (s store.Storer, err error)

func ConnectInMemoryWithDebug

func ConnectInMemoryWithDebug(ctx context.Context) (s store.Storer, err error)

func DataDefiner

func DataDefiner(dbName string, conn *sqlx.DB) *dataDefiner

func DeepIdentJSON

func DeepIdentJSON(asJSON bool, jsonDoc exp.Expression, pp ...any) exp.LiteralExpression

DeepIdentJSON constructs expression with chain of JSON operators that point value inside JSON document

https://www.postgresql.org/docs/9.3/functions-json.html

func Dialect

func Dialect() *sqliteDialect

func InformationSchema

func InformationSchema(conn *sqlx.DB) *informationSchema

func NewConfig

func NewConfig(in string) (*rdbms.ConnConfig, error)

NewConfig validates given DSN and ensures params are present and correct

Types

type TypeDate

type TypeDate struct{ *dal.TypeDate }

func (*TypeDate) Decode

func (t *TypeDate) Decode(raw any) (any, bool, error)

func (*TypeDate) Encode

func (t *TypeDate) Encode(val any) (driver.Value, error)

func (*TypeDate) MakeScanBuffer

func (*TypeDate) MakeScanBuffer() any

type TypeTime

type TypeTime struct{ *dal.TypeTime }

func (*TypeTime) Decode

func (t *TypeTime) Decode(raw any) (any, bool, error)

func (*TypeTime) Encode

func (t *TypeTime) Encode(val any) (driver.Value, error)

func (*TypeTime) MakeScanBuffer

func (*TypeTime) MakeScanBuffer() any

type TypeTimestamp

type TypeTimestamp struct{ *dal.TypeTimestamp }

func (*TypeTimestamp) Decode

func (t *TypeTimestamp) Decode(raw any) (any, bool, error)

func (*TypeTimestamp) Encode

func (t *TypeTimestamp) Encode(val any) (driver.Value, error)

func (*TypeTimestamp) MakeScanBuffer

func (*TypeTimestamp) MakeScanBuffer() any

Jump to

Keyboard shortcuts

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