Documentation ¶
Index ¶
Constants ¶
View Source
const ( TypeInteger = "Integer" TypeNull = "Null" TypeDecimal = "Decimal" TypeTimestamp = "Timestamp" TypeDate = "Date" TypeDatetime = "Datetime" TypeString = "String" )
Variables ¶
This section is empty.
Functions ¶
func GetGroupByFields ¶
Types ¶
type AsNameTableInfo ¶
AsNameTableINfo likes the following:
{ "tableAsName": { "colName": { "entity-dbname": { "entity-tablename": "entity-colname" } } } }
type ColumnInfo ¶
type ColumnName ¶
func (ColumnName) String ¶
func (c ColumnName) String() string
type EntityInfo ¶
EntityInfo likes as the following:
{ "entity-dbname": { "entity-tablename": {"entity-colname": true} } }
type FKRelation ¶
type FKRelation map[RelationTuple]bool
func DeduplicateFKRelation ¶
func DeduplicateFKRelation(originalFKRelations []FKRelation) []FKRelation
func GetFKRelation ¶
func GetFKRelation(query string) (fkRelations []FKRelation, err error)
type JoinConditionCol ¶
type JoinConditionCol []ColumnName
type RelationTuple ¶
func (RelationTuple) String ¶
func (rt RelationTuple) String() string
type SchemaInfo ¶
type SchemaInfo struct { DbName string TableName string ColumnNames map[string]*ColumnInfo KeyWithMultiCol map[string]*[]string }
func GetSchemaInfo ¶
func GetSchemaInfo(query string) ([]SchemaInfo, error)
Click to show internal directories.
Click to hide internal directories.