querycache

package
v1.8.9 Latest Latest
Warning

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

Go to latest
Published: Dec 9, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var CacheBuilders = CacheBuilderFnMap{
	typedef.CacheInsert:            genInsertStmtCache,
	typedef.CacheInsertIfNotExists: genInsertIfNotExistsStmtCache,
	typedef.CacheDelete:            genDeleteStmtCache,
	typedef.CacheUpdate:            genUpdateStmtCache,
}.ToList()

Functions

This section is empty.

Types

type Cache

type Cache struct {
	// contains filtered or unexported fields
}

func New

func New(s *typedef.Schema) *Cache

func (*Cache) BindToTable

func (c *Cache) BindToTable(t *typedef.Table)

func (*Cache) GetQuery

func (c *Cache) GetQuery(qct typedef.StatementCacheType) *typedef.StmtCache

func (*Cache) Reset

func (c *Cache) Reset()

type CacheBuilderFn

type CacheBuilderFn func(s *typedef.Schema, t *typedef.Table) *typedef.StmtCache

type CacheBuilderFnMap

type CacheBuilderFnMap map[typedef.StatementCacheType]CacheBuilderFn

func (CacheBuilderFnMap) ToList

type QueryCache

func (QueryCache) Reset

func (c QueryCache) Reset()

Jump to

Keyboard shortcuts

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