Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Database ¶
type Database interface { Close() Connect(dbFile string) error Exec(sql string, args ...interface{}) (sql.Result, error) Query(sql string, args ...interface{}) (rows.Rows, error) }
Database Define a common interface for all database drivers
type PaginationInformation ¶ added in v0.4.1
PaginationInformation is used to return information from a pagination query
type PaginationQuery ¶ added in v0.4.1
PaginationQuery accepts current page and resuilts per page to generate a query
type PaginationResult ¶ added in v0.4.1
type PaginationResult struct {
TotalResults int `json:"total"`
}
PaginationResult is used to return pagination details from a count query
Click to show internal directories.
Click to hide internal directories.