Documentation
¶
Index ¶
- Constants
- func InsertBuilder[T any](db dbx.Database[T], mapp M) squirrel.InsertBuilder
- func New[T any](ctx context.Context, conf *confpb.Config, opts ...dbx.Option) (dbx.Database[T], error)
- func Paging(builder squirrel.SelectBuilder, page *typepb.Pages) squirrel.SelectBuilder
- func SelectBuilder[T any](db dbx.Database[T], page *typepb.Pages, columns ...string) squirrel.SelectBuilder
- func UpdateBuilder[T any](db dbx.Database[T], id string) squirrel.UpdateBuilder
- func WithTx[T any](ss *TxSession, db dbx.Database[T]) dbx.Database[T]
- type Client
- type M
- type Tx
- type TxSession
Constants ¶
View Source
const ( Timestamp dbx.ColumnType = "TIMESTAMPTZ" String dbx.ColumnType = "TEXT" StringArr dbx.ColumnType = "TEXT[]" IntArr dbx.ColumnType = "INTEGER[]" ByteA dbx.ColumnType = "BYTEA" Int4 dbx.ColumnType = "INTEGER" Int8 dbx.ColumnType = "BIGINT" Float4 dbx.ColumnType = "REAL" Float8 dbx.ColumnType = "DOUBLE PRECISION" Bool dbx.ColumnType = "BOOLEAN" JSONB dbx.ColumnType = "JSONB" )
Variables ¶
This section is empty.
Functions ¶
func InsertBuilder ¶
func Paging ¶
func Paging(builder squirrel.SelectBuilder, page *typepb.Pages) squirrel.SelectBuilder
func SelectBuilder ¶
func UpdateBuilder ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.