Documentation ¶
Index ¶
- func IsEmpty(err error) bool
- type Action
- func (qt *Action) Delete(queryString string, queryValue ...any) error
- func (qt *Action) Insert() error
- func (qt *Action) Select(queryString string, queryValue ...any) ([]any, error)
- func (qt *Action) SelectOne(queryString string, queryValue ...any) error
- func (qt *Action) Update(queryString string, queryValue ...any) error
- type Cache
- type Database
- type Elem
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Action ¶
type Action struct { Table string // Name of the table Db *Database // Reference to the Database instance Elems map[string]*Elem // Mapping of field names to Elem objects Cache *Cache // Cache object for the table Obj any // Object }
Action represents a set of database operations
func (*Action) Delete ¶
Delete deletes database records based on the provided query string and values
func (*Action) Select ¶
Select retrieves data from the database based on the provided query string and values
Click to show internal directories.
Click to hide internal directories.