sqlite3

package
v0.0.5-b Latest Latest
Warning

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

Go to latest
Published: Jul 31, 2021 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

Types

type Conn

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

func (*Conn) BeginTransaction

func (c *Conn) BeginTransaction(ctx context.Context) (activerecord.Conn, error)

func (*Conn) Close

func (c *Conn) Close() error

func (*Conn) ColumnDefinitions

func (c *Conn) ColumnDefinitions(ctx context.Context, tableName string) (
	[]activerecord.ColumnDefinition, error,
)

func (*Conn) CommitTransaction

func (c *Conn) CommitTransaction(ctx context.Context) error

func (*Conn) Exec

func (c *Conn) Exec(ctx context.Context, sql string, args ...interface{}) error

func (*Conn) ExecDelete

func (c *Conn) ExecDelete(ctx context.Context, op *activerecord.DeleteOperation) error

func (*Conn) ExecInsert

func (c *Conn) ExecInsert(ctx context.Context, op *activerecord.InsertOperation) (
	id interface{}, err error,
)

func (*Conn) ExecQuery

func (c *Conn) ExecQuery(
	ctx context.Context, op *activerecord.QueryOperation, cb func(activesupport.Hash) bool,
) (
	err error,
)

func (*Conn) RollbackTransaction

func (c *Conn) RollbackTransaction(ctx context.Context) error

type Querier

type Querier interface {
	ExecContext(context.Context, string, ...interface{}) (sql.Result, error)
	QueryContext(context.Context, string, ...interface{}) (*sql.Rows, error)
}

Jump to

Keyboard shortcuts

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