sqlite

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Apr 4, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SQLite

type SQLite struct {
	// contains filtered or unexported fields
}

func NewSQLite

func NewSQLite(ctx context.Context, conn *sql.Conn) SQLite

func (SQLite) AllCols

func (sq SQLite) AllCols() isql.Engine

func (SQLite) BeginTx

func (sq SQLite) BeginTx() (isql.Engine, error)

func (SQLite) Close

func (sq SQLite) Close() error

func (SQLite) Columns

func (sq SQLite) Columns(cols ...string) isql.Engine

func (SQLite) Commit

func (sq SQLite) Commit() error

func (SQLite) DeleteOne

func (sq SQLite) DeleteOne(filter ...any) error

func (SQLite) Exec

func (sq SQLite) Exec(query string, args ...any) (sql.Result, error)

func (SQLite) FindMany

func (sq SQLite) FindMany(documents any, filter ...any) error

func (SQLite) FindOne

func (sq SQLite) FindOne(document any, filter ...any) (bool, error)

func (SQLite) ID

func (sq SQLite) ID(id any) isql.Engine

func (SQLite) In

func (sq SQLite) In(col string, values ...any) isql.Engine

func (SQLite) InsertMany

func (sq SQLite) InsertMany(documents []any) ([]any, error)

func (SQLite) InsertOne

func (sq SQLite) InsertOne(document any) (id any, err error)

func (SQLite) MustCols

func (sq SQLite) MustCols(cols ...string) isql.Engine

func (SQLite) Query

func (sq SQLite) Query(query string, args ...any) (*sql.Rows, error)

func (SQLite) Rollback

func (sq SQLite) Rollback() error

func (SQLite) ShowSQL

func (sq SQLite) ShowSQL(showSQL bool) isql.Engine

func (SQLite) Sync

func (sq SQLite) Sync(tables ...any) error

func (SQLite) Table

func (sq SQLite) Table(name string) isql.Engine

func (SQLite) UpdateOne

func (sq SQLite) UpdateOne(document any) error

func (SQLite) Where

func (sq SQLite) Where(cond string, args ...any) isql.Engine

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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