Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Column ¶
type Column struct { Type ColumnType Name string Alias string // contains filtered or unexported fields }
func (*Column) IsPrimaryKey ¶
func (*Column) SetPrimaryKey ¶
func (c *Column) SetPrimaryKey()
type ColumnType ¶
type ColumnType string
const ( Int ColumnType = "Int" Float ColumnType = "Float" String ColumnType = "String" )
type DefaultSqlAdapter ¶
type DefaultSqlAdapter struct {
// contains filtered or unexported fields
}
DefaultSqlAdapter is a default implementation of SqlAdapter. It is use to query single table with custom fields.
func NewDefaultSqlAdapter ¶
func NewDefaultSqlAdapter(tableName string, columns []*Column, node core.Node) *DefaultSqlAdapter
func (*DefaultSqlAdapter) Resolve ¶
func (d *DefaultSqlAdapter) Resolve() graphql.FieldResolveFn
type SqlAdapter ¶
type SqlAdapter interface {
Resolve() graphql.FieldResolveFn
}
SqlAdapter is a part of Node interface, which is designed to bridge business objects with SQL queries.
Click to show internal directories.
Click to hide internal directories.