Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrPrepareStatement = "error when tying to prepare statement" ErrNotFound = "there is no entry with provided arguments" ErrDuplicate = "there is no entry with provided arguments" ErrorQueryRow = "error when tying to read entry" ErrorQueryRows = "error when tying to read entry" ErrExecute = "error when tying to excute statement" )
Functions ¶
This section is empty.
Types ¶
type MigrateDirection ¶
type MigrateDirection uint8
const ( MigrateUp MigrateDirection = 1 MigrateDown MigrateDirection = 2 )
type RDBMS ¶
type RDBMS interface { Migrate(source string, direction MigrateDirection) error // will be used for read and create QueryRow(query string, in []any, out []any) error Query(query string, in []any, out [][]any) error // will be used for update and delete Execute(query string, in []any) error }
func NewPostgres ¶
Click to show internal directories.
Click to hide internal directories.