Documentation
¶
Index ¶
- func MustNewConn(c sqlx.SqlConf) sqlx.SqlConn
- func NewConnWithCache(db sqlx.SqlConn, c cache.Cache) sqlc.CachedConn
- func WithCacheConf(cacheConf cache.CacheConf) opts.Opt[ModelOpts]
- func WithCacheOpts(cacheOpts ...cache.Option) opts.Opt[ModelOpts]
- func WithCachedConn(cachedConn sqlc.CachedConn) opts.Opt[ModelOpts]
- func WithTableName(tableName string) opts.Opt[ModelOpts]
- type ModelOpts
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewConnWithCache ¶ added in v0.51.0
NewConnWithCache returns a CachedConn with a custom cache.
func WithCachedConn ¶
func WithCachedConn(cachedConn sqlc.CachedConn) opts.Opt[ModelOpts]
Types ¶
Click to show internal directories.
Click to hide internal directories.