Documentation
¶
Index ¶
- func ConfigureDB(sqlDb *sql.DB) (*sqlx.DB, error)
- func Get(ctx context.Context, db sqlx.Ext, q sq.SelectBuilder, dest interface{}) error
- func OpenDB(url string) (*sqlx.DB, error)
- func OpenDBPool(ctx context.Context, url string) (*pgxpool.Pool, *sqlx.DB, error)
- func OpenPool(ctx context.Context, url string) (*pgxpool.Pool, error)
- func OpenRedis(v string) (*redis.Client, error)
- func Select(ctx context.Context, db sqlx.Ext, q sq.SelectBuilder, dest interface{}) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConfigureDB ¶
ConfigureDB sets up common database configuration
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.