sqlite

package module
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2025 License: MIT Imports: 10 Imported by: 0

README

sqlite

A SQLite Driver for GOE ORM

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	LogQuery bool
}

type Connection

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

func (Connection) ExecContext

func (c Connection) ExecContext(ctx context.Context, query model.Query) error

func (Connection) QueryContext

func (c Connection) QueryContext(ctx context.Context, query model.Query) (goe.Rows, error)

func (Connection) QueryRowContext

func (c Connection) QueryRowContext(ctx context.Context, query model.Query) goe.Row

type Driver

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

func Open

func Open(dns string, config Config) (driver *Driver)

func (*Driver) Close

func (dr *Driver) Close() error

func (*Driver) DropColumn

func (db *Driver) DropColumn(table, column string) error

func (*Driver) DropTable

func (db *Driver) DropTable(table string) error

func (*Driver) Init

func (dr *Driver) Init() error

func (*Driver) KeywordHandler

func (dr *Driver) KeywordHandler(s string) string

func (*Driver) Log

func (dr *Driver) Log(b bool)

func (*Driver) MigrateContext

func (db *Driver) MigrateContext(ctx context.Context, migrator *goe.Migrator) error

func (*Driver) Name

func (dr *Driver) Name() string

func (*Driver) NewConnection

func (dr *Driver) NewConnection() goe.Connection

func (*Driver) NewTransaction

func (dr *Driver) NewTransaction(ctx context.Context, opts *sql.TxOptions) (goe.Transaction, error)

func (*Driver) RenameColumn

func (db *Driver) RenameColumn(table, oldColumn, newColumn string) error

func (*Driver) Stats

func (dr *Driver) Stats() sql.DBStats

type Row

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

func (Row) Scan

func (r Row) Scan(dest ...any) error

type Rows

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

func (Rows) Close

func (rs Rows) Close() error

func (Rows) Next

func (rs Rows) Next() bool

func (Rows) Scan

func (rs Rows) Scan(dest ...any) error

type Transaction

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

func (Transaction) Commit

func (t Transaction) Commit() error

func (Transaction) ExecContext

func (t Transaction) ExecContext(ctx context.Context, query model.Query) error

func (Transaction) QueryContext

func (t Transaction) QueryContext(ctx context.Context, query model.Query) (goe.Rows, error)

func (Transaction) QueryRowContext

func (t Transaction) QueryRowContext(ctx context.Context, query model.Query) goe.Row

func (Transaction) Rollback

func (t Transaction) Rollback() error

Jump to

Keyboard shortcuts

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