Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Connect func(ctx context.Context, connString string) (DBExecutorContext, error) = connect
Connect function returns object that can execute sql against target database
View Source
var Logger *logrus.Entry
Logger provides access to the PostgreSQL specific logging facility
Functions ¶
Types ¶
type DBExecutorContext ¶
type DBExecutorContext interface {
Exec(ctx context.Context, sql string, arguments ...interface{}) (pgconn.CommandTag, error)
}
DBExecutorContext interface represents sql executor with context support
Click to show internal directories.
Click to hide internal directories.