Add the ability to fully customize jet generated files.
This commit is contained in:
parent
caa81930dc
commit
8864667f47
40 changed files with 2274 additions and 882 deletions
27
generator/metadata/column_meta_data.go
Normal file
27
generator/metadata/column_meta_data.go
Normal file
|
|
@ -0,0 +1,27 @@
|
|||
package metadata
|
||||
|
||||
// Column struct
|
||||
type Column struct {
|
||||
Name string
|
||||
IsPrimaryKey bool
|
||||
IsNullable bool
|
||||
DataType DataType
|
||||
}
|
||||
|
||||
// DataTypeKind is database type kind(base, enum, user-defined, array)
|
||||
type DataTypeKind string
|
||||
|
||||
// DataTypeKind possible values
|
||||
const (
|
||||
BaseType DataTypeKind = "base"
|
||||
EnumType DataTypeKind = "enum"
|
||||
UserDefinedType DataTypeKind = "user-defined"
|
||||
ArrayType DataTypeKind = "array"
|
||||
)
|
||||
|
||||
// DataType contains information about column data type
|
||||
type DataType struct {
|
||||
Name string
|
||||
Kind DataTypeKind
|
||||
IsUnsigned bool
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue