Documentation ¶
Index ¶
- func ConvertDurationToInterval(duration time.Duration) string
- func ExecBulkInsert(q Querier, table string, cols []string, objects []interface{}) error
- func ExecBulkInsertUpdateAdd(q Querier, table string, insertCols, updateCols []string, ...) error
- func ExecBulkInsertUpdateOverwrite(q Querier, table string, insertCols, updateCols []string, ...) error
- func ExecBulkInsertUpdateSubtract(q Querier, table string, insertCols, updateCols []string, ...) error
- func ExecInsert(q Querier, table string, cols []string, object interface{}) (uint64, error)
- func ExecInsertNoID(q Querier, table string, cols []string, object interface{}) error
- func ExecUpdate(q Querier, table string, updateCols, whereCols []string, updatedAt bool, ...) error
- func FetchMigrations(path string, migrationFS *embed.FS) (map[string]string, error)
- func GetBigInt(q Querier, query string, args ...interface{}) (*big.Int, error)
- func GetFloat64(q Querier, query string, args ...interface{}) (float64, error)
- func GetString(q Querier, query string, args ...interface{}) (string, error)
- func GetTime(q Querier, query string, args ...interface{}) (time.Time, error)
- func GetUint64(q Querier, query string, args ...interface{}) (uint64, error)
- type Client
- type NullBigInt
- type Querier
- type Tx
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ExecBulkInsert ¶
func ExecBulkInsertUpdateAdd ¶
func ExecInsert ¶
func ExecInsertNoID ¶
func ExecUpdate ¶
func FetchMigrations ¶
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) DowngradeMigration ¶
func (*Client) DowngradeMigrations ¶
func (*Client) UpgradeMigrations ¶
type NullBigInt ¶
func (*NullBigInt) Scan ¶
func (n *NullBigInt) Scan(src interface{}) error
Scan implements the Scanner interface.
type Querier ¶
type Querier interface { Get(dest interface{}, query string, args ...interface{}) error Select(dest interface{}, query string, args ...interface{}) error Exec(query string, args ...interface{}) (sql.Result, error) NamedExec(query string, arg interface{}) (sql.Result, error) Rebind(query string) string }
Click to show internal directories.
Click to hide internal directories.