Documentation ¶
Index ¶
- Constants
- type AutoIncrementingInteger
- type Config
- type SQLHandler
- func (h *SQLHandler) ApplyQueryTemplate(queryTemplateName string, sqlQuery string) string
- func (h *SQLHandler) Clear(ctx context.Context, q *query.Query) (total int, err error)
- func (h *SQLHandler) Create(ctx context.Context, s *schema.Schema) (err error)
- func (h *SQLHandler) Delete(ctx context.Context, item *resource.Item) (err error)
- func (h *SQLHandler) ExecContext(ctx context.Context, sqlQuery string, sqlParams ...interface{}) (sql.Result, error)
- func (h *SQLHandler) Find(ctx context.Context, q *query.Query) (list *resource.ItemList, err error)
- func (h *SQLHandler) Insert(ctx context.Context, items []*resource.Item) (err error)
- func (h *SQLHandler) QueryContext(ctx context.Context, sqlQuery string, sqlParams ...interface{}) (*sql.Rows, error)
- func (h *SQLHandler) Update(ctx context.Context, item *resource.Item, original *resource.Item) (err error)
Constants ¶
View Source
const ( NONE = iota ERR WARN DEBUG )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AutoIncrementingInteger ¶
type AutoIncrementingInteger int
type SQLHandler ¶
type SQLHandler struct {
// contains filtered or unexported fields
}
func NewHandler ¶
func NewHandlerWithDB ¶
func (*SQLHandler) ApplyQueryTemplate ¶
func (h *SQLHandler) ApplyQueryTemplate(queryTemplateName string, sqlQuery string) string
func (*SQLHandler) ExecContext ¶
func (*SQLHandler) QueryContext ¶
Click to show internal directories.
Click to hide internal directories.