modelx

package
v0.50.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 4, 2025 License: MIT Imports: 3 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WithCacheConf

func WithCacheConf(cacheConf cache.CacheConf) opts.Opt[ModelOpts]

func WithCacheOpts

func WithCacheOpts(cacheOpts ...cache.Option) opts.Opt[ModelOpts]

func WithCachedConn

func WithCachedConn(cachedConn sqlc.CachedConn) opts.Opt[ModelOpts]

func WithTableName added in v0.43.3

func WithTableName(tableName string) opts.Opt[ModelOpts]

Types

type ModelOpts

type ModelOpts struct {
	CachedConn *sqlc.CachedConn
	CacheConf  cache.CacheConf
	CacheOpts  []cache.Option
	TableName  string
}

func (ModelOpts) DefaultOptions

func (opts ModelOpts) DefaultOptions() ModelOpts

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL