sqac Data Types

sqac.IndexInfo

IndexInfo is used by sqac to provide information to the PublicDB.CreateIndex method regarding the table name, uniqueness and columns to be included in a new database index.

// IndexInfo contains index definitions as read from the sqac:"index" tags
type IndexInfo struct {
    TableName   string
    Unique      bool
    IndexFields []string
}

sqac.GetParam

GetParam defines a common structure for CRUD GET parameters and is used in the PublicDB.GetEntitiesCP method.

type GetParam struct {
    FieldName    string          // database column name
    Operand      string          // operand for parameter (ie. ==, !=, < etc.)
    ParamValue   interface{}     // parameter value
    NextOperator string          // deprecated - do not use
}