Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Contract ¶
type Contract struct {
Type ContractType
}
type ContractType ¶
type ContractType string
const ( ContractSQLC ContractType = "sqlc" ContractPROTO ContractType = "proto" )
type Entity ¶
type Entity struct {
Name string
Fields []Field
Contracts []Contract
Queries []Query
Indexes []Index
}
func FilterPROTO ¶
func FilterSQLC ¶
func (Entity) GetIdField ¶
type Field ¶
type Index ¶
type Index struct {
Type IndexType
Columns []IndexColumn
Unique bool
Name string
}
func (Index) FieldNames ¶
type IndexColumn ¶
type QueryFilter ¶
type QueryFilter struct {
Type QueryFilterType
Field string
Optional bool
}
type QueryFilterType ¶
type QueryFilterType string
const ( QueryFilterRange QueryFilterType = "range" QueryFilterSearch QueryFilterType = "search" QueryFilterEq QueryFilterType = "eq" )
type SQLDialect ¶
type SQLDialect string
const ( MySQL SQLDialect = "mysql" SQLite SQLDialect = "sqlite" PostgreSQL SQLDialect = "postgresql" )
Click to show internal directories.
Click to hide internal directories.