Documentation
¶
Index ¶
- type Database
- func (m *Database[T]) Close() error
- func (m *Database[T]) Create(tableName string, config map[string]database.Config) error
- func (m *Database[T]) CreateFromStruct(tableName string, example any) error
- func (m *Database[T]) DeleteTable(tableName string) error
- func (m *Database[T]) Exec(query string, args ...any) error
- func (m *Database[T]) GetTable(tableName string, _ T) (database.Table[T], error)
- type Table
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.