Documentation
¶
Index ¶
- func ConfigureDB(sqlDb *sql.DB) (*sqlx.DB, error)
- func EscapeLike(s string, prefix bool, suffix bool) string
- 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
func EscapeLike ¶ added in v1.3.2
EscapeLike escapes SQL LIKE/ILIKE wildcard characters (%, _, and \) in a string and optionally adds prefix/suffix wildcards for pattern matching.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.