Documentation
¶
Index ¶
- Variables
- type Backend
- func (b *Backend) CreateSingle(req *http.Request) (response []interface{}, err error)
- func (b *Backend) GetCollection(req *http.Request) (response []interface{}, err error)
- func (b *Backend) GetCollectionAsOptions(req *http.Request) (response []interface{}, err error)
- func (b *Backend) GetCollectionAsOptionsFilterable(req *http.Request) (response []interface{}, err error)
- func (b *Backend) GetSingle(req *http.Request) (response []interface{}, err error)
- func (b *Backend) GetSingleAsOption(req *http.Request) (response []interface{}, err error)
- func (b *Backend) Open(driver, url string) error
- func (b *Backend) SaveTableSchemas() (err error)
- func (b *Backend) TearDown()
- func (b *Backend) UpdateSingle(req *http.Request) (response []interface{}, err error)
- type NullTime
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrPostFormEmpty = errors.New("Form data sent was either empty, incomplete or of an unsupported type") ErrCardinalityMany = errors.New("Form data contained multiple input values for a single column") ErrUnexpectedJSON = errors.New("Received JSON data that we are unable to parse") ErrMismatchedAffectedRows = errors.New("The amount of rows affected should be sane") )
Functions ¶
This section is empty.
Types ¶
type Backend ¶
type Backend struct { Cfg *config.Config ConvertDBSpecificDataType func(string) interface{} DB *sql.DB Queries map[string]string RequestData map[string]interface{} Templates map[string]string // contains filtered or unexported fields }
func (*Backend) CreateSingle ¶
Create data from database
func (*Backend) GetCollection ¶
func (*Backend) GetCollectionAsOptions ¶
Fetch Options from database
func (*Backend) GetCollectionAsOptionsFilterable ¶
func (b *Backend) GetCollectionAsOptionsFilterable(req *http.Request) (response []interface{}, err error)
Fetch Options from database
func (*Backend) GetSingleAsOption ¶
Fetch Option data from database
Click to show internal directories.
Click to hide internal directories.