Versions in this module Expand all Collapse all v1 v1.0.1 Aug 26, 2026 Changes in this version + var ErrNotFound = sqlx.ErrNotFound + type CachedConn struct + func NewConn(db sqlx.SqlConn, c cache.CacheConf, opts ...cache.Option) CachedConn + func NewConnWithCache(db sqlx.SqlConn, c cache.Cache) CachedConn + func NewNodeConn(db sqlx.SqlConn, rds *redis.Redis, opts ...cache.Option) CachedConn + func (cc CachedConn) DelCache(keys ...string) error + func (cc CachedConn) DelCacheCtx(ctx context.Context, keys ...string) error + func (cc CachedConn) Exec(exec ExecFn, keys ...string) (sql.Result, error) + func (cc CachedConn) ExecCtx(ctx context.Context, exec ExecCtxFn, keys ...string) (sql.Result, error) + func (cc CachedConn) ExecNoCache(q string, args ...any) (sql.Result, error) + func (cc CachedConn) ExecNoCacheCtx(ctx context.Context, q string, args ...any) (sql.Result, error) + func (cc CachedConn) GetCache(key string, v any) error + func (cc CachedConn) GetCacheCtx(ctx context.Context, key string, v any) error + func (cc CachedConn) QueryRow(v any, key string, query QueryFn) error + func (cc CachedConn) QueryRowCtx(ctx context.Context, v any, key string, query QueryCtxFn) error + func (cc CachedConn) QueryRowIndex(v any, key string, keyer func(primary any) string, indexQuery IndexQueryFn, ...) error + func (cc CachedConn) QueryRowIndexCtx(ctx context.Context, v any, key string, keyer func(primary any) string, ...) error + func (cc CachedConn) QueryRowNoCache(v any, q string, args ...any) error + func (cc CachedConn) QueryRowNoCacheCtx(ctx context.Context, v any, q string, args ...any) error + func (cc CachedConn) QueryRowPartialNoCache(v any, q string, args ...any) error + func (cc CachedConn) QueryRowPartialNoCacheCtx(ctx context.Context, v any, q string, args ...any) error + func (cc CachedConn) QueryRowsNoCache(v any, q string, args ...any) error + func (cc CachedConn) QueryRowsNoCacheCtx(ctx context.Context, v any, q string, args ...any) error + func (cc CachedConn) QueryRowsPartialNoCache(v any, q string, args ...any) error + func (cc CachedConn) QueryRowsPartialNoCacheCtx(ctx context.Context, v any, q string, args ...any) error + func (cc CachedConn) SetCache(key string, val any) error + func (cc CachedConn) SetCacheCtx(ctx context.Context, key string, val any) error + func (cc CachedConn) SetCacheWithExpire(key string, val any, expire time.Duration) error + func (cc CachedConn) SetCacheWithExpireCtx(ctx context.Context, key string, val any, expire time.Duration) error + func (cc CachedConn) Transact(fn func(sqlx.Session) error) error + func (cc CachedConn) TransactCtx(ctx context.Context, fn func(context.Context, sqlx.Session) error) error + func (cc CachedConn) WithSession(session sqlx.Session) CachedConn + type ExecCtxFn func(ctx context.Context, conn sqlx.SqlConn) (sql.Result, error) + type ExecFn func(conn sqlx.SqlConn) (sql.Result, error) + type IndexQueryCtxFn func(ctx context.Context, conn sqlx.SqlConn, v any) (any, error) + type IndexQueryFn func(conn sqlx.SqlConn, v any) (any, error) + type PrimaryQueryCtxFn func(ctx context.Context, conn sqlx.SqlConn, v, primary any) error + type PrimaryQueryFn func(conn sqlx.SqlConn, v, primary any) error + type QueryCtxFn func(ctx context.Context, conn sqlx.SqlConn, v any) error + type QueryFn func(conn sqlx.SqlConn, v any) error