Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Database ¶
type Database[T any] interface { Persist() error Retrieve() error Create(table string, data *Table[T]) ReadOrCreate(table string) *Table[T] }
func NewGobDatabase ¶
type GobDatabase ¶
func (*GobDatabase[T]) Create ¶
func (db *GobDatabase[T]) Create(table string, data *Table[T])
func (*GobDatabase[T]) Persist ¶
func (db *GobDatabase[T]) Persist() error
func (*GobDatabase[T]) ReadOrCreate ¶
func (db *GobDatabase[T]) ReadOrCreate(table string) *Table[T]
func (*GobDatabase[T]) Retrieve ¶
func (db *GobDatabase[T]) Retrieve() error
Click to show internal directories.
Click to hide internal directories.