Documentation ¶
Index ¶
- type AugmentableQuery
- type Columns
- type Direction
- type ExpressionFunc
- type Expressions
- type Filters
- type Model
- func (m *Model) Create(params interface{}, destination interface{}) error
- func (m *Model) Delete(id interface{}) error
- func (m *Model) Initialize(dialect string, cx sql.ConnX)
- func (m *Model) One(destination interface{}, id interface{}) error
- func (m *Model) Page(items interface{}, filters Filters, order Order, page int, size int) (*service.ContentResponse, error)
- func (m *Model) PageFromReq(dest interface{}, req service.Req) (interface{}, error)
- func (m *Model) SetupCreateTest(t *testing.T, params interface{}) func() error
- func (m *Model) SetupDeleteTest(t *testing.T) func() error
- func (m *Model) SetupOneTest(t *testing.T) func() error
- func (m *Model) SetupPageTest(response interface{}, filters Filters, order Order, page int, size int, ...)
- func (m *Model) SetupUpdateTest(t *testing.T, params interface{}, destination interface{}) func() error
- func (m *Model) Update(id interface{}, params interface{}, destination interface{}) error
- type Order
- type OrderColumn
- type Page
- type Size
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AugmentableQuery ¶
type AugmentableQuery *func(*goqu.SelectDataset) *goqu.SelectDataset
type ExpressionFunc ¶ added in v0.3.25
type ExpressionFunc func(*goqu.SelectDataset, interface{}) *goqu.SelectDataset
type Expressions ¶ added in v0.3.25
type Expressions map[string]ExpressionFunc
type Model ¶
type Model struct { MultiTenant bool Paginate bool Table string Columns []interface{} Expressions Expressions AugmentListQuery AugmentableQuery AugmentOneQuery AugmentableQuery // contains filtered or unexported fields }
func (*Model) PageFromReq ¶
func (*Model) SetupCreateTest ¶
func (*Model) SetupPageTest ¶
func (*Model) SetupUpdateTest ¶
type OrderColumn ¶
Click to show internal directories.
Click to hide internal directories.