Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Database ¶
type Database struct {
// contains filtered or unexported fields
}
func NewDatabase ¶
func NewDatabase() *Database
func (*Database) CreateTable ¶
type RecordInterface ¶
type RecordInterface interface { GetID() int GetData() interface{} }
type Table ¶
func (*Table) CreateRecord ¶
func (table *Table) CreateRecord(record interface{}) (RecordInterface, error)
func (*Table) DeleteRecord ¶
func (*Table) ReadRecord ¶
func (*Table) UpdateRecord ¶
type TableInterface ¶
type TableInterface interface { CreateRecord(record interface{}) (RecordInterface, error) ReadRecord(id int) (RecordInterface, error) UpdateRecord(id int, record interface{}) error DeleteRecord(id int) error }
Click to show internal directories.
Click to hide internal directories.