Documentation
¶
Index ¶
- func Example()
- func FindField(path string, fullTableName string, fieldName string) (msg *capnp.Message, field grizzly.Field, err error)
- func FindTable(path string, fullTableName string) (msg *capnp.Message, table grizzly.Table, err error)
- func WriteCsvTemplateFile(filePath string, fieldNames []string, fieldType []string)
- type Catalog
- type CatalogNode
- type Database
- type Field
- type Schema
- type System
- type Table
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FindTable ¶
func FindTable(path string, fullTableName string) (msg *capnp.Message, table grizzly.Table, err error)
func (c catalog) findTable(msg *capnp.Message, fullTableName string) (table grizzly.Table) {
func WriteCsvTemplateFile ¶
Types ¶
type Catalog ¶
type Catalog struct {
// contains filtered or unexported fields
}
func (*Catalog) WriteCapnp ¶
type CatalogNode ¶
type CatalogNode struct { Id int64 `json:"id"` Name string `json:"name"` Description string `json:"description"` }
Used to print a JSON version of the catalog
type Database ¶
type Database struct { CatalogNode Schemas []Schema `json:"schemas"` }
type Field ¶
type Field struct { CatalogNode Type string `json:"type"` Description string `json:"description"` Usage string `json:"usage"` }
type Schema ¶
type Schema struct { CatalogNode Tables []Table `json:"tables"` }
type System ¶
type System struct { CatalogNode Databases []Database `json:"databases"` }
type Table ¶
type Table struct { CatalogNode Fields []Field `json:"fields"` }
Click to show internal directories.
Click to hide internal directories.