Add Column.TableName field

This commit is contained in:
Victor Gaydov 2016-04-28 16:27:13 +03:00
parent 8d208d9ad8
commit 49d0620cff
1 changed files with 2 additions and 0 deletions

View File

@ -16,6 +16,7 @@ const (
// database column
type Column struct {
Name string
TableName string
FieldName string
SQLType SQLType
Length int
@ -42,6 +43,7 @@ type Column struct {
func NewColumn(name, fieldName string, sqlType SQLType, len1, len2 int, nullable bool) *Column {
return &Column{
Name: name,
TableName: "",
FieldName: fieldName,
SQLType: sqlType,
Length: len1,