ddl

package
v0.4.7 Latest Latest
Warning

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

Go to latest
Published: Jul 13, 2021 License: MIT Imports: 24 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DB added in v0.3.5

type DB interface {
	Querier
	BeginTxx(ctx context.Context, opts *sql.TxOptions) (Tx, error)
	Close() error
}

https://github.com/jmoiron/sqlx/issues/344#issuecomment-318372779

type Ddl

type Ddl struct {
	Dir     string
	Reverse bool
	Dao     bool
	Pre     string
	Df      string
	Conf    config.DbConfig
}

func (Ddl) Exec

func (d Ddl) Exec()

type GddDB added in v0.3.5

type GddDB struct {
	*sqlx.DB
}

func (*GddDB) BeginTxx added in v0.3.5

func (g *GddDB) BeginTxx(ctx context.Context, opts *sql.TxOptions) (Tx, error)

type GddTx added in v0.3.5

type GddTx struct {
	*sqlx.Tx
}

type Querier added in v0.3.5

type Querier interface {
	NamedExecContext(ctx context.Context, query string, arg interface{}) (sql.Result, error)
	ExecContext(ctx context.Context, query string, args ...interface{}) (sql.Result, error)
	GetContext(ctx context.Context, dest interface{}, query string, args ...interface{}) error
	Rebind(query string) string
	SelectContext(ctx context.Context, dest interface{}, query string, args ...interface{}) error
}

type Tx added in v0.3.5

type Tx interface {
	Querier
	Commit() error
	Rollback() error
}

Jump to

Keyboard shortcuts

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