Versions in this module Expand all Collapse all v0 v0.2.0 May 3, 2025 Changes in this version + func InsertFullWithSuffix[T any](ctx context.Context, db sqlx.ExtContext, omitEmpty bool, table string, a T, ...) (int64, error) + func InsertPSQLFullWithSuffix[T any](ctx context.Context, db sqlx.ExtContext, omitEmpty bool, table string, ...) (int64, error) v0.1.0 Feb 9, 2025 Changes in this version + func InsertFull[T any](ctx context.Context, db sqlx.ExtContext, omitEmpty bool, table string, a T) (int64, error) + func InsertPSQLFull[T any](ctx context.Context, db sqlx.ExtContext, omitEmpty bool, table string, ...) (int64, error) v0.0.1 Sep 18, 2024 Changes in this version + var Tag = "db" + func AddSearchPath(dsn string, schema ...string) string + func Collect2[T any](seq iter.Seq2[T, error]) ([]T, error) + func Delete(ctx context.Context, db sqlx.ExtContext, table string, where sq.Sqlizer) error + func DeleteByID(ctx context.Context, db sqlx.ExtContext, table string, id any) error + func Exists(ctx context.Context, db sqlx.ExtContext, table string, where sq.Sqlizer) (bool, error) + func ExistsByID(ctx context.Context, db sqlx.ExtContext, table string, id any) (bool, error) + func InsertPSQL[T any](ctx context.Context, db sqlx.ExtContext, table string, idCol string, a T) (int64, error) + func Insert[T any](ctx context.Context, db sqlx.ExtContext, table string, a T) (int64, error) + func JustErr(_ any, err error) error + func SelectRowByID[T any](ctx context.Context, db sqlx.ExtContext, table string, id int64) (*T, error) + func SelectRowByIntegrationID[T any](ctx context.Context, db sqlx.ExtContext, table string, integrationID string) (*T, error) + func SelectRow[T any](ctx context.Context, db sqlx.ExtContext, table string, where sq.Sqlizer) (*T, error) + func Select[T any](ctx context.Context, db sqlx.ExtContext, table string, where sq.Sqlizer) (iter.Seq2[T, error], error) + func UpdateByID[T any](ctx context.Context, db sqlx.ExtContext, table string, id any, a *T) (int64, error) + func Update[T any](ctx context.Context, db sqlx.ExtContext, table string, a *T, where sq.Sqlizer) (int64, error)