Documentation
¶
Index ¶
- func CloseConnection(conn *sql.DB) error
- func DefaultLogger(ctx context.Context, query string, args ...any)
- func ExecWithLog(ctx context.Context, db *sql.DB, query string, args ...any) (sql.Result, error)
- func MigrateDatabase() error
- func NewConsumer(ctx context.Context, topics []string, groupID string, ...)
- func NewSqlcWithConnection[T any](ctx context.Context, factory SqlcFactory[T], opts ConnectOptions) (T, *sql.DB, error)
- func OpenConnection() (*sql.DB, error)
- func OpenConnectionV2(ctx context.Context, opts ConnectOptions) (*sql.DB, error)
- func QueryRowWithLog(ctx context.Context, db *sql.DB, query string, args ...any) *sql.Row
- func QueryWithLog(ctx context.Context, db *sql.DB, query string, args ...any) (*sql.Rows, error)
- type ConnectOptions
- type Consumer
- type Producer
- type QueryLogger
- type SqlcFactory
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CloseConnection ¶ added in v0.2.0
func DefaultLogger ¶ added in v1.0.0
func ExecWithLog ¶ added in v1.0.0
func MigrateDatabase ¶
func MigrateDatabase() error
func NewConsumer ¶
func NewSqlcWithConnection ¶ added in v1.0.0
func NewSqlcWithConnection[T any](ctx context.Context, factory SqlcFactory[T], opts ConnectOptions) (T, *sql.DB, error)
func OpenConnection ¶
func OpenConnectionV2 ¶ added in v1.0.0
func QueryRowWithLog ¶ added in v1.0.0
Types ¶
type ConnectOptions ¶ added in v1.0.0
type Producer ¶ added in v0.1.9
type Producer struct {
// contains filtered or unexported fields
}
func NewProducer ¶ added in v0.1.9
type QueryLogger ¶ added in v1.0.0
type SqlcFactory ¶ added in v1.0.0
Click to show internal directories.
Click to hide internal directories.