Documentation ¶
Index ¶
Constants ¶
View Source
const ( DbKeto = "keto" DbUsers = "users" DbThings = "things" DBSinks = "sinks" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Database ¶
type Database interface { NamedExecContext(context.Context, string, interface{}) (sql.Result, error) QueryRowxContext(context.Context, string, ...interface{}) *sqlx.Row NamedQueryContext(context.Context, string, interface{}) (*sqlx.Rows, error) GetContext(context.Context, interface{}, string, ...interface{}) error BeginTxx(context.Context, *sql.TxOptions) (*sqlx.Tx, error) }
Database provides a database interface
func NewDatabase ¶
NewDatabase creates a ThingDatabase instance
Click to show internal directories.
Click to hide internal directories.