Documentation
¶
Index ¶
Constants ¶
View Source
const ( DefaultLimit = 100 DefaultOffset = 0 )
Variables ¶
Functions ¶
This section is empty.
Types ¶
type Admin ¶ added in v0.2.0
type Admin struct {
// contains filtered or unexported fields
}
func New ¶ added in v0.2.0
Returns a *Admin which has a HandlePost method that can be used to handle requests from https://sqliteadmin.dev.
func (*Admin) HandlePost ¶ added in v0.2.0
func (a *Admin) HandlePost(w http.ResponseWriter, r *http.Request)
Handles the incoming HTTP POST request. This is responsible for handling all the supported operations from https://sqliteadmin.dev
type CommandRequest ¶
type Condition ¶
type Condition struct { Cases []Case `json:"cases" mapstructure:"cases"` LogicalOperator LogicalOperator `json:"logicalOperator" mapstructure:"logicalOperator"` }
func (Condition) ConditionCaseType ¶
type Filter ¶
type Filter struct { Column string `json:"column"` Operator Operator `json:"operator"` Value string `json:"value"` }
func (Filter) ConditionCaseType ¶
type LogicalOperator ¶
type LogicalOperator string
const ( LogicalOperatorAnd LogicalOperator = "and" LogicalOperatorOr LogicalOperator = "or" )
type Operator ¶
type Operator string
const ( OperatorEquals Operator = "eq" OperatorLike Operator = "like" OperatorNotEquals Operator = "neq" OperatorLessThan Operator = "lt" OperatorLessThanOrEquals Operator = "lte" OperatorGreaterThan Operator = "gt" OperatorGreaterThanOrEquals Operator = "gte" OperatorIsNull Operator = "null" OperatorIsNotNull Operator = "notnull" )
Click to show internal directories.
Click to hide internal directories.