Documentation
¶
Index ¶
- Variables
- func Infer(sch *schema.Schema, name string, docs []json.RawMessage, primaryKey []string, ...) error
- func ScaffoldFromDB(db string, collections []*api.CollectionDescription, lang string) error
- type Collection
- type Field
- type JSONToGo
- type JSONToJava
- type JSONToLangType
- type JSONToTypeScript
- type Object
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrIncompatibleSchema = fmt.Errorf("error incompatible schema") ErrExpectedString = fmt.Errorf("expected string type") ErrExpectedNumber = fmt.Errorf("expected json.Number") ErrUnsupportedType = fmt.Errorf("unsupported type") )
View Source
var (
ErrUnsupportedFormat = fmt.Errorf("unsupported format. supported formats are: JSON, TypeScripts, Go, Java")
)
Functions ¶
func ScaffoldFromDB ¶
func ScaffoldFromDB(db string, collections []*api.CollectionDescription, lang string) error
Types ¶
type Collection ¶
type JSONToGo ¶
type JSONToGo struct{}
func (*JSONToGo) GetFooterTemplate ¶
func (*JSONToGo) GetHeaderTemplate ¶
type JSONToJava ¶
type JSONToJava struct{}
func (*JSONToJava) GetFooterTemplate ¶
func (*JSONToJava) GetFooterTemplate() string
func (*JSONToJava) GetHeaderTemplate ¶
func (*JSONToJava) GetHeaderTemplate() string
func (*JSONToJava) HasTime ¶
func (*JSONToJava) HasTime(schema string) bool
func (*JSONToJava) HasUUID ¶
func (*JSONToJava) HasUUID(schema string) bool
type JSONToLangType ¶
type JSONToTypeScript ¶
type JSONToTypeScript struct{}
func (*JSONToTypeScript) GetFooterTemplate ¶
func (*JSONToTypeScript) GetFooterTemplate() string
func (*JSONToTypeScript) GetHeaderTemplate ¶
func (*JSONToTypeScript) GetHeaderTemplate() string
func (*JSONToTypeScript) HasTime ¶
func (*JSONToTypeScript) HasTime(schema string) bool
func (*JSONToTypeScript) HasUUID ¶
func (*JSONToTypeScript) HasUUID(schema string) bool
Click to show internal directories.
Click to hide internal directories.