Documentation
¶
Index ¶
- type Database
- func (p *Database[T]) Close() error
- func (p *Database[T]) Create(tableName string, config map[string]database.Config) error
- func (p *Database[T]) CreateFromStruct(tableName string, example any) error
- func (p *Database[T]) DeleteTable(tableName string) error
- func (p *Database[T]) GetTable(tableName string, _ T) (database.Table[T], error)
- type Table
- func (t *Table[T]) Del(val T, whereFields []string, _ time.Duration) error
- func (t *Table[T]) Get(val T, whereFields []string, opts database.Options, _ time.Duration) ([]T, error)
- func (t *Table[T]) Ins(val T, _ time.Duration) error
- func (t *Table[T]) Set(old, updated T, whereFields, setFields []string, _ time.Duration) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Database ¶
type Database[T any] struct { // contains filtered or unexported fields }
func (*Database[T]) CreateFromStruct ¶
func (*Database[T]) DeleteTable ¶
Click to show internal directories.
Click to hide internal directories.