sqlite

package
v0.0.15 Latest Latest
Warning

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

Go to latest
Published: Oct 10, 2025 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Deserialize added in v0.0.2

func Deserialize(ctx context.Context, file string) error

func DeserializeFromReader added in v0.0.9

func DeserializeFromReader(ctx context.Context, r io.Reader) error

func Filename added in v0.0.9

func Filename(ctx context.Context) (string, error)

func SetGlobalDB

func SetGlobalDB(database *sql.DB)

Types

type Request

type Request struct {
	Sql    string         `json:"sql"`
	Params map[string]any `json:"params"`
}

type Response

type Response struct {
	Columns      []string `json:"columns"`
	Rows         [][]any  `json:"rows"`
	RowsAffected int64    `json:"-"`
	NoReturning  bool     `json:"-"`
}

func Exec

func Exec(ctx context.Context, eq execerQuerier, stmt *ha.Statement, params map[string]any) (*Response, error)

func Transaction

func Transaction(ctx context.Context, req []Request) ([]*Response, error)

Jump to

Keyboard shortcuts

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