package
Version:
v0.1.2
Opens a new window with list of versions in this module.
Published: Dec 22, 2017
License: MIT
Opens a new window with license information.
Imports: 5
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
The hcl package parses an input configuration file to create a database db.
type Column struct {
Type string `hcl:"type"`
NotNull bool `hcl:"not_null"`
CastTypeUsing string `hcl:"cast_type_using"`
Default string `hcl:"default"`
PrimaryKey bool `hcl:"primary_key"`
}
type Index struct {
On []string `hcl:"on"`
Unique bool `hcl:"unique"`
}
type Schema struct {
Table map[string]Table `hcl:"table"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.