Documentation
¶
Index ¶
- Constants
- func Base64Decode(message []byte) (b []byte, err error)
- func Base64Encode(message []byte) []byte
- func ExtRemoveQuotes(extVal []byte) string
- func ExtValIsNull(extVal []byte) bool
- func StrToBool(vStr string) (bool, error)
- func StrToFloat(vStr string) (float64, error)
- func StrToInt(vStr string) (int64, error)
- func StrToTime(vStr string, tmpl string) (time.Time, error)
- func StrToUint(vStr string) (uint64, error)
- func ValidateArray(f FielderArray, val []interface{}) error
- func ValidateAssocArray(f FielderAssocArray, val []interface{}) error
- func ValidateBytea(f FielderBytea, val []byte) error
- func ValidateDate(f Fielder, val string) error
- func ValidateDateTime(f Fielder, val string) error
- func ValidateDateTimeTZ(f Fielder, val string) error
- func ValidateEnum(f FielderEnum, val string) error
- func ValidateFloat(f FielderFloat, val float64) error
- func ValidateInt(f FielderInt, val int64) error
- func ValidateJSON(f FielderJSON, val []byte) error
- func ValidateText(f FielderText, val string) error
- func ValidateTime(f Fielder, val string) error
- type Field
- func (f *Field) GetAlias() string
- func (f *Field) GetAutoInc() bool
- func (f *Field) GetDbRequired() bool
- func (f *Field) GetDefOrder() ParamBool
- func (f *Field) GetDefOrderIndex() byte
- func (f *Field) GetDescr() string
- func (f *Field) GetDisplay() bool
- func (f *Field) GetEncrypted() bool
- func (f *Field) GetEnumId() string
- func (f *Field) GetFieldIndex() int
- func (f *Field) GetId() string
- func (f *Field) GetLength() int
- func (f *Field) GetNoValueOnCopy() bool
- func (f *Field) GetOrderInList() byte
- func (f *Field) GetPrecision() int
- func (f *Field) GetPrimaryKey() bool
- func (f *Field) GetRefField() string
- func (f *Field) GetRefTable() string
- func (f *Field) GetRegFieldType() string
- func (f *Field) GetRequired() bool
- func (f *Field) GetRetAfterInsert() bool
- func (f *Field) GetSysCol() bool
- func (f *Field) GetUnique() bool
- func (f *Field) SetAlias(v string)
- func (f *Field) SetDefOrder(v ParamBool)
- func (f *Field) SetDefOrderIndex(v byte)
- func (f *Field) SetDescr(v string)
- func (f *Field) SetEncrypted(v bool)
- func (f *Field) SetFieldIndex(v int)
- func (f *Field) SetId(v string)
- func (f *Field) SetNoValueOnCopy(v bool)
- func (f *Field) SetOrderInList(v byte)
- func (f *Field) SetPrecision(v int)
- func (f *Field) SetPrimaryKey(v bool)
- func (f *Field) SetRequired(v bool)
- func (f *Field) SetSysCol(v bool)
- type FieldArray
- type FieldAssocArray
- type FieldBool
- type FieldBytea
- type FieldCollection
- type FieldDataType
- type FieldDate
- type FieldDateTime
- type FieldDateTimeTZ
- type FieldEnum
- type FieldFloat
- func (f *FieldFloat) GetDataType() FieldDataType
- func (f *FieldFloat) GetLength() ParamInt
- func (f *FieldFloat) GetMaxValue() ParamFloat
- func (f *FieldFloat) GetMinValue() ParamFloat
- func (f *FieldFloat) GetNotZero() ParamBool
- func (f *FieldFloat) GetPrecision() ParamInt
- func (f *FieldFloat) SetLength(v ParamInt)
- func (f *FieldFloat) SetMaxValue(v ParamFloat)
- func (f *FieldFloat) SetMinValue(v ParamFloat)
- func (f *FieldFloat) SetNotZero(v ParamBool)
- func (f *FieldFloat) SetPrecision(v ParamInt)
- type FieldInt
- func (f *FieldInt) GetDataType() FieldDataType
- func (f *FieldInt) GetMaxValue() ParamInt64
- func (f *FieldInt) GetMinValue() ParamInt64
- func (f *FieldInt) GetNotZero() ParamBool
- func (f *FieldInt) SetMaxValue(v ParamInt64)
- func (f *FieldInt) SetMinValue(v ParamInt64)
- func (f *FieldInt) SetNotZero(v ParamBool)
- type FieldJSON
- type FieldText
- type FieldTime
- type Fielder
- type FielderArray
- type FielderAssocArray
- type FielderBytea
- type FielderEnum
- type FielderFloat
- type FielderInt
- type FielderJSON
- type FielderText
- type ParamBool
- type ParamFloat
- type ParamInt
- type ParamInt64
- type Ref
- type Val
- type ValArray
- func (v ValArray) GetIsNull() bool
- func (v ValArray) GetIsSet() bool
- func (v ValArray) GetValue() []interface{}
- func (v *ValArray) MarshalJSON() ([]byte, error)
- func (v *ValArray) MarshalXML(e *xml.Encoder, start xml.StartElement) error
- func (v *ValArray) Scan(value interface{}) error
- func (v *ValArray) SetNull()
- func (v ValArray) String() string
- func (v *ValArray) UnmarshalJSON(data []byte) error
- func (v ValArray) Value() (driver.Value, error)
- type ValArrayer
- type ValAssocArray
- type ValAssocArrayer
- type ValBool
- func (v ValBool) GetIsNull() bool
- func (v ValBool) GetIsSet() bool
- func (v ValBool) GetValue() bool
- func (v *ValBool) MarshalJSON() ([]byte, error)
- func (v *ValBool) Scan(value interface{}) error
- func (v *ValBool) SetNull()
- func (v *ValBool) SetValue(vV bool)
- func (v ValBool) String() string
- func (v *ValBool) UnmarshalJSON(data []byte) error
- func (v ValBool) Value() (driver.Value, error)
- type ValBooler
- type ValBytea
- func (v ValBytea) GetIsNull() bool
- func (v ValBytea) GetIsSet() bool
- func (v ValBytea) GetValue() []byte
- func (v *ValBytea) Len() int
- func (v *ValBytea) MarshalJSON() ([]byte, error)
- func (v *ValBytea) Scan(value interface{}) error
- func (v *ValBytea) SetNull()
- func (v *ValBytea) SetValue(vAr []byte)
- func (v ValBytea) String() string
- func (v *ValBytea) UnmarshalJSON(data []byte) error
- func (v ValBytea) Value() (driver.Value, error)
- type ValBytera
- type ValDate
- type ValDateTime
- type ValDateTimeTZ
- func (v ValDateTimeTZ) GetIsNull() bool
- func (v ValDateTimeTZ) GetIsSet() bool
- func (v ValDateTimeTZ) GetValue() time.Time
- func (v *ValDateTimeTZ) MarshalJSON() ([]byte, error)
- func (v *ValDateTimeTZ) Scan(value interface{}) error
- func (v *ValDateTimeTZ) SetNull()
- func (v *ValDateTimeTZ) SetValue(vT time.Time)
- func (v ValDateTimeTZ) String() string
- func (v *ValDateTimeTZ) UnmarshalJSON(data []byte) error
- func (v ValDateTimeTZ) Value() (driver.Value, error)
- type ValEnumer
- type ValExt
- type ValFloat
- func (v ValFloat) GetIsNull() bool
- func (v ValFloat) GetIsSet() bool
- func (v ValFloat) GetValue() float64
- func (v *ValFloat) MarshalJSON() ([]byte, error)
- func (v *ValFloat) Scan(value interface{}) error
- func (v *ValFloat) SetNull()
- func (v *ValFloat) SetValue(vF float64)
- func (v ValFloat) String() string
- func (v *ValFloat) UnmarshalJSON(data []byte) error
- func (v ValFloat) Value() (driver.Value, error)
- type ValFloater
- type ValInt
- func (v ValInt) GetIsNull() bool
- func (v ValInt) GetIsSet() bool
- func (v ValInt) GetValue() int64
- func (v *ValInt) MarshalJSON() ([]byte, error)
- func (v *ValInt) Scan(value interface{}) error
- func (v *ValInt) SetNull()
- func (v *ValInt) SetValue(vI int64)
- func (v ValInt) String() string
- func (v *ValInt) UnmarshalJSON(data []byte) error
- func (v ValInt) Value() (driver.Value, error)
- type ValInteger
- type ValJSON
- func (v ValJSON) GetIsNull() bool
- func (v ValJSON) GetIsSet() bool
- func (v ValJSON) GetValue() []byte
- func (v *ValJSON) MarshalJSON() ([]byte, error)
- func (v *ValJSON) MarshalXML(e *xml.Encoder, start xml.StartElement) error
- func (v *ValJSON) Scan(value interface{}) error
- func (v *ValJSON) SetNull()
- func (v *ValJSON) SetValue(vAr []byte)
- func (v ValJSON) String() string
- func (v *ValJSON) UnmarshalJSON(data []byte) error
- func (v ValJSON) Value() (driver.Value, error)
- type ValRef
- func (v ValRef) GetIsNull() bool
- func (v ValRef) GetIsSet() bool
- func (v ValRef) GetKeyAsInt(id string) int64
- func (v ValRef) GetKeyAsString(id string) string
- func (v ValRef) GetValue() *Ref
- func (v *ValRef) MarshalJSON() ([]byte, error)
- func (v *ValRef) Scan(value interface{}) error
- func (v *ValRef) SetNull()
- func (v *ValRef) SetValue(vRef Ref)
- func (v ValRef) String() string
- func (v *ValRef) UnmarshalJSON(data []byte) error
- func (v ValRef) Value() (driver.Value, error)
- type ValText
- func (v ValText) GetIsNull() bool
- func (v ValText) GetIsSet() bool
- func (v ValText) GetValue() string
- func (v *ValText) MarshalJSON() ([]byte, error)
- func (v *ValText) Scan(value interface{}) error
- func (v *ValText) SetNull()
- func (v *ValText) SetValue(vStr string)
- func (v ValText) String() string
- func (v *ValText) UnmarshalJSON(data []byte) error
- func (v ValText) Value() (driver.Value, error)
- type ValTexter
- type ValTime
- type ValTimer
- type ValUint
- func (v ValUint) GetIsNull() bool
- func (v ValUint) GetIsSet() bool
- func (v ValUint) GetValue() uint64
- func (v *ValUint) MarshalJSON() ([]byte, error)
- func (v *ValUint) Scan(value interface{}) error
- func (v ValUint) SetNull()
- func (v *ValUint) SetValue(vI uint64)
- func (v ValUint) String() string
- func (v *ValUint) UnmarshalJSON(data []byte) error
- func (v ValUint) Value() (driver.Value, error)
Constants ¶
const ( QUOTE_CHAR byte = 34 JSON_NULL = "null" )
const ( JSON_TRUE = "true" JSON_FALSE = "false" )
const ( FORMAT_DATE_TIME_TZ1 string = "2006-01-02T15:04:05.000-07" FORMAT_DATE_TIME_TZ2 string = "2006-01-02T15:04:05-07:00" FORMAT_DATE_TIME_TZ3 string = "2006-01-02T15:04:05Z07:00" )
const ( ER_VALID_AR_MAX_LEN = "Количество значений массива поля '%s' превышает максимальное" ER_VALID_AR_MIN_LEN = "Количество значений массива поля '%s' меньше минимального" ER_VALID_PRECISION = "Количество знаков дробной части поля '%s' больше максимального" ER_VALID_MINVAL = "Значение поля '%s' меньше минимального" ER_VALID_MAXVAL = "Значение поля '%s' больше максимального" ER_VALID_ZEROVAL = "Значение поля '%s' не может быть равно нулю" ER_VALID_LEN = "Количество символов значения поля '%s' больше максимального" ER_VALID_AR_LEN = "Количество значений массива поля '%s' больше максимального" ER_VALID_ENUM = "Значение поля '%s' не найдено в перечислении" ER_UNMARSHAL_INT = "Ошибка парсинга целого числа: " ER_UNMARSHAL_ARRAY = "Ошибка парсинга массива: " ER_UNMARSHAL_ASSOC_ARRAY = "Ошибка парсинга ассоциативного массива: " ER_UNMARSHAL_FLOAT = "Ошибка парсинга дробного числа: " ER_UNMARSHAL_STRING = "Ошибка парсинга строки: " ER_UNMARSHAL_BOOL = "Ошибка парсинга boolean значения: " ER_UNMARSHAL_TIME = "Ошибка парсинга даты: " ER_UNMARSHAL_JSON = "Ошибка парсинга json: " ER_UNMARSHAL_BYTEA = "Ошибка парсинга bytea: " )
const CONSTR_VALUE_SEP = ","
const FORMAT_DATE = "2006-01-02"
const FORMAT_DATE_TIME = "2006-01-02T15:04:05"
const FORMAT_TIME = "15:04:05"
const SINGLE_QUOTE_CHAR = 39
Variables ¶
This section is empty.
Functions ¶
func Base64Decode ¶
func Base64Encode ¶
func ExtRemoveQuotes ¶
func ExtValIsNull ¶
func StrToFloat ¶
func ValidateAssocArray ¶
func ValidateAssocArray(f FielderAssocArray, val []interface{}) error
Array validaion
Types ¶
type Field ¶
type Field struct {
Id string
PrimaryKey bool
AutoInc bool
Required bool
SysCol bool
DbRequired bool
Display bool
Alias string
Descr string
Length int
DefOrder ParamBool
DefOrderIndex byte //to preserve order
//DefaultValue interface{}
RefTable string
RefField string
Unique bool
EnumId string
Precision int
RegFieldType string
RetAfterInsert bool
NoValueOnCopy bool
OrderInList byte //to preserve order for getting comma separated list for select queries
Encrypted bool
FieldIndex int
}
Base metadata field
func (*Field) GetAutoInc ¶
func (*Field) GetDbRequired ¶
func (*Field) GetDefOrder ¶
func (*Field) GetDefOrderIndex ¶
func (*Field) GetDisplay ¶
func (*Field) GetEncrypted ¶
func (*Field) GetFieldIndex ¶
func (*Field) GetNoValueOnCopy ¶
func (*Field) GetOrderInList ¶
func (*Field) GetPrecision ¶
func (*Field) GetPrimaryKey ¶
func (f *Field) GetDataType() FieldDataType {
return f.DataType
}
func (*Field) GetRefField ¶
func (*Field) GetRefTable ¶
func (*Field) GetRegFieldType ¶
func (*Field) GetRequired ¶
func (*Field) GetRetAfterInsert ¶
func (*Field) SetDefOrder ¶
func (*Field) SetDefOrderIndex ¶
func (*Field) SetEncrypted ¶
func (*Field) SetFieldIndex ¶
func (*Field) SetNoValueOnCopy ¶
func (*Field) SetOrderInList ¶
func (*Field) SetPrecision ¶
func (*Field) SetPrimaryKey ¶
func (*Field) SetRequired ¶
type FieldArray ¶
func (*FieldArray) GetDataType ¶
func (f *FieldArray) GetDataType() FieldDataType
func (*FieldArray) GetMaxCount ¶
func (f *FieldArray) GetMaxCount() ParamInt
func (*FieldArray) GetMinCount ¶
func (f *FieldArray) GetMinCount() ParamInt
type FieldAssocArray ¶
func (*FieldAssocArray) GetDataType ¶
func (f *FieldAssocArray) GetDataType() FieldDataType
func (*FieldAssocArray) GetMaxCount ¶
func (f *FieldAssocArray) GetMaxCount() ParamInt
func (*FieldAssocArray) GetMinCount ¶
func (f *FieldAssocArray) GetMinCount() ParamInt
type FieldBool ¶
type FieldBool struct {
Field
}
***** Metadata text field:strings/texts ******************
func (*FieldBool) GetDataType ¶
func (f *FieldBool) GetDataType() FieldDataType
type FieldBytea ¶
type FieldBytea struct {
Field
}
***** Metadata text field:strings/texts ******************
func (*FieldBytea) GetDataType ¶
func (f *FieldBytea) GetDataType() FieldDataType
type FieldCollection ¶
func GenModelMD ¶
func GenModelMD(v reflect.Value) FieldCollection
function is executed on start, so we can panic
type FieldDataType ¶
type FieldDataType byte
const ( FIELD_TYPE_BOOL FieldDataType = iota FIELD_TYPE_CHAR //1 FIELD_TYPE_STRING //2 FIELD_TYPE_INT //3 FIELD_TYPE_DATE //4 FIELD_TYPE_TIME //5 FIELD_TYPE_TIMETZ //6 FIELD_TYPE_DATETIME //7 FIELD_TYPE_DATETIMETZ //8 FIELD_TYPE_FLOAT //9 FIELD_TYPE_TEXT //10 FIELD_TYPE_ENUM //11 FIELD_TYPE_PASSWORD //12 FIELD_TYPE_INTERVAL //13 FIELD_TYPE_JSON //14 FIELD_TYPE_JSONB //15 FIELD_TYPE_ARRAY //16 FIELD_TYPE_BYTEA //17 FIELD_TYPE_XML //18 FIELD_TYPE_GEOMPOLYGON //19 FIELD_TYPE_GEOMPOINT //20 )
type FieldDate ¶
type FieldDate struct {
Field
}
***** Metadata text field:strings/texts ******************
func (*FieldDate) GetDataType ¶
func (f *FieldDate) GetDataType() FieldDataType
type FieldDateTime ¶
type FieldDateTime struct {
Field
}
***** Metadata text field:strings/texts ******************
func (*FieldDateTime) GetDataType ¶
func (f *FieldDateTime) GetDataType() FieldDataType
type FieldDateTimeTZ ¶
type FieldDateTimeTZ struct {
Field
}
***** Metadata text field:strings/texts ******************
func (*FieldDateTimeTZ) GetDataType ¶
func (f *FieldDateTimeTZ) GetDataType() FieldDataType
type FieldEnum ¶
func (*FieldEnum) CheckValue ¶
func (*FieldEnum) GetDataType ¶
func (f *FieldEnum) GetDataType() FieldDataType
type FieldFloat ¶
type FieldFloat struct {
Field
MinValue ParamFloat
MaxValue ParamFloat
NotZero ParamBool
Precision ParamInt
Length ParamInt
}
func (*FieldFloat) GetDataType ¶
func (f *FieldFloat) GetDataType() FieldDataType
func (*FieldFloat) GetLength ¶
func (f *FieldFloat) GetLength() ParamInt
func (*FieldFloat) GetMaxValue ¶
func (f *FieldFloat) GetMaxValue() ParamFloat
func (*FieldFloat) GetMinValue ¶
func (f *FieldFloat) GetMinValue() ParamFloat
func (*FieldFloat) GetNotZero ¶
func (f *FieldFloat) GetNotZero() ParamBool
func (*FieldFloat) GetPrecision ¶
func (f *FieldFloat) GetPrecision() ParamInt
func (*FieldFloat) SetLength ¶
func (f *FieldFloat) SetLength(v ParamInt)
func (*FieldFloat) SetMaxValue ¶
func (f *FieldFloat) SetMaxValue(v ParamFloat)
func (*FieldFloat) SetMinValue ¶
func (f *FieldFloat) SetMinValue(v ParamFloat)
func (*FieldFloat) SetNotZero ¶
func (f *FieldFloat) SetNotZero(v ParamBool)
func (*FieldFloat) SetPrecision ¶
func (f *FieldFloat) SetPrecision(v ParamInt)
type FieldInt ¶
type FieldInt struct {
Field
MinValue ParamInt64
MaxValue ParamInt64
NotZero ParamBool
}
func (*FieldInt) GetDataType ¶
func (f *FieldInt) GetDataType() FieldDataType
func (*FieldInt) GetMaxValue ¶
func (f *FieldInt) GetMaxValue() ParamInt64
func (*FieldInt) GetMinValue ¶
func (f *FieldInt) GetMinValue() ParamInt64
func (*FieldInt) GetNotZero ¶
func (*FieldInt) SetMaxValue ¶
func (f *FieldInt) SetMaxValue(v ParamInt64)
func (*FieldInt) SetMinValue ¶
func (f *FieldInt) SetMinValue(v ParamInt64)
func (*FieldInt) SetNotZero ¶
type FieldJSON ¶
type FieldJSON struct {
Field
}
***** Metadata text field:strings/texts ******************
func (*FieldJSON) GetDataType ¶
func (f *FieldJSON) GetDataType() FieldDataType
type FieldText ¶
***** Metadata text field:strings/texts ******************
func (*FieldText) GetDataType ¶
func (f *FieldText) GetDataType() FieldDataType
type FieldTime ¶
type FieldTime struct {
Field
}
***** Metadata text field:strings/texts ******************
func (*FieldTime) GetDataType ¶
func (f *FieldTime) GetDataType() FieldDataType
type Fielder ¶
type Fielder interface {
GetId() string
SetId(string)
GetAlias() string
SetAlias(string)
GetRequired() bool
SetRequired(bool)
GetDescr() string
SetDescr(string)
GetDataType() FieldDataType
GetPrimaryKey() bool
SetPrimaryKey(bool)
GetAutoInc() bool
GetSysCol() bool
SetSysCol(bool)
GetDbRequired() bool
GetDisplay() bool
GetRegFieldType() string
GetRetAfterInsert() bool
GetNoValueOnCopy() bool
SetNoValueOnCopy(bool)
GetDefOrder() ParamBool
SetDefOrder(v ParamBool)
GetOrderInList() byte
SetOrderInList(byte)
GetDefOrderIndex() byte
SetDefOrderIndex(byte)
SetEncrypted(bool)
GetEncrypted() bool
SetFieldIndex(int)
GetFieldIndex() int
}
Base interface
type FielderArray ¶
type FielderAssocArray ¶
type FielderBytea ¶
type FielderBytea interface {
Fielder
}
type FielderEnum ¶
type FielderEnum interface {
FielderText
CheckValue(string) bool
}
type FielderFloat ¶
type FielderFloat interface {
Fielder
GetMinValue() ParamFloat
SetMinValue(ParamFloat)
GetMaxValue() ParamFloat
SetMaxValue(ParamFloat)
GetNotZero() ParamBool
SetNotZero(ParamBool)
GetPrecision() ParamInt
SetPrecision(ParamInt)
GetLength() ParamInt
SetLength(ParamInt)
}
type FielderInt ¶
type FielderInt interface {
Fielder
GetMinValue() ParamInt64
SetMinValue(ParamInt64)
GetMaxValue() ParamInt64
SetMaxValue(ParamInt64)
GetNotZero() ParamBool
SetNotZero(ParamBool)
}
type FielderJSON ¶
type FielderJSON interface {
Fielder
}
type FielderText ¶
type ParamBool ¶
func NewParamBool ¶
type ParamFloat ¶
func NewParamFloat ¶
func NewParamFloat(value float64) ParamFloat
type ParamInt ¶
func NewParamInt ¶
type ParamInt64 ¶
func NewParamInt64 ¶
func NewParamInt64(value int64) ParamInt64
type ValArray ¶
type ValArray struct {
Val
TypedValue []interface{}
}
func (*ValArray) MarshalJSON ¶
func (*ValArray) MarshalXML ¶
func (*ValArray) UnmarshalJSON ¶
Custom Array unmarshal
type ValArrayer ¶
type ValArrayer interface {
GetValue() []interface{}
}
type ValAssocArray ¶
func (ValAssocArray) GetIsNull ¶
func (v ValAssocArray) GetIsNull() bool
func (ValAssocArray) GetIsSet ¶
func (v ValAssocArray) GetIsSet() bool
func (ValAssocArray) GetValue ¶
func (v ValAssocArray) GetValue() map[string]interface{}
func (*ValAssocArray) MarshalJSON ¶
func (v *ValAssocArray) MarshalJSON() ([]byte, error)
func (ValAssocArray) String ¶
func (v ValAssocArray) String() string
func (*ValAssocArray) UnmarshalJSON ¶
func (v *ValAssocArray) UnmarshalJSON(data []byte) error
Custom AssocArray unmarshal
type ValAssocArrayer ¶
type ValAssocArrayer interface {
GetValue() map[string]interface{}
}
type ValBool ¶
func NewValBool ¶
func (*ValBool) MarshalJSON ¶
func (*ValBool) UnmarshalJSON ¶
Custom Bool unmarshal
type ValBytea ¶
func NewValBytea ¶
func (*ValBytea) UnmarshalJSON ¶
Custom String unmarshal incoming string in Base64
type ValDate ¶
type ValDate struct {
ValDateTimeTZ
}
func (*ValDate) MarshalJSON ¶
func (*ValDate) UnmarshalJSON ¶
Custom Float unmarshal
type ValDateTime ¶
type ValDateTime struct {
ValDateTimeTZ
}
func (*ValDateTime) MarshalJSON ¶
func (v *ValDateTime) MarshalJSON() ([]byte, error)
func (*ValDateTime) Scan ¶
func (v *ValDateTime) Scan(value interface{}) error
func (ValDateTime) String ¶
func (v ValDateTime) String() string
func (*ValDateTime) UnmarshalJSON ¶
func (v *ValDateTime) UnmarshalJSON(data []byte) error
Custom Float unmarshal
type ValDateTimeTZ ¶
func (ValDateTimeTZ) GetIsNull ¶
func (v ValDateTimeTZ) GetIsNull() bool
func (ValDateTimeTZ) GetIsSet ¶
func (v ValDateTimeTZ) GetIsSet() bool
func (ValDateTimeTZ) GetValue ¶
func (v ValDateTimeTZ) GetValue() time.Time
func (*ValDateTimeTZ) MarshalJSON ¶
func (v *ValDateTimeTZ) MarshalJSON() ([]byte, error)
func (*ValDateTimeTZ) Scan ¶
func (v *ValDateTimeTZ) Scan(value interface{}) error
driver.Scanner, driver.Valuer interfaces
func (*ValDateTimeTZ) SetNull ¶
func (v *ValDateTimeTZ) SetNull()
func (*ValDateTimeTZ) SetValue ¶
func (v *ValDateTimeTZ) SetValue(vT time.Time)
func (ValDateTimeTZ) String ¶
func (v ValDateTimeTZ) String() string
func (*ValDateTimeTZ) UnmarshalJSON ¶
func (v *ValDateTimeTZ) UnmarshalJSON(data []byte) error
Custom Float unmarshal
type ValFloat ¶
func NewValFloat ¶
func (*ValFloat) MarshalJSON ¶
func (*ValFloat) UnmarshalJSON ¶
Custom Float unmarshal
type ValFloater ¶
type ValFloater interface {
GetValue() float64
}
type ValInt ¶
Ext type int
func (*ValInt) MarshalJSON ¶
func (*ValInt) UnmarshalJSON ¶
Custom Int unmarshal
type ValInteger ¶
type ValInteger interface {
GetValue() int64
}
type ValJSON ¶
func NewValJSON ¶
func (*ValJSON) MarshalJSON ¶
func (*ValJSON) MarshalXML ¶
func (*ValJSON) UnmarshalJSON ¶
Custom String unmarshal
type ValRef ¶
func (ValRef) GetKeyAsInt ¶
func (ValRef) GetKeyAsString ¶
func (*ValRef) MarshalJSON ¶
func (*ValRef) UnmarshalJSON ¶
Custom String unmarshal
type ValText ¶
func NewValText ¶
func (*ValText) MarshalJSON ¶
func (*ValText) UnmarshalJSON ¶
Custom String unmarshal
type ValTime ¶
type ValTime struct {
ValDateTimeTZ
}
func (*ValTime) MarshalJSON ¶
func (*ValTime) UnmarshalJSON ¶
Custom Float unmarshal
type ValUint ¶
Ext type int
func NewValUint ¶
func (*ValUint) MarshalJSON ¶
func (*ValUint) UnmarshalJSON ¶
Custom Int unmarshal
Source Files
¶
- Field.go
- FieldArray.go
- FieldAssocArray.go
- FieldBool.go
- FieldBytea.go
- FieldDate.go
- FieldDateTime.go
- FieldDateTimeTZ.go
- FieldEnum.go
- FieldFloat.go
- FieldInt.go
- FieldJSON.go
- FieldText.go
- FieldTime.go
- Val.go
- ValArray.go
- ValAssocArray.go
- ValBool.go
- ValBytea.go
- ValDate.go
- ValDateTime.go
- ValDateTimeTZ.go
- ValFloat.go
- ValInt.go
- ValJSON.go
- ValRef.go
- ValText.go
- ValTime.go
- ValUint.go
- field_params.go
- model_md.go
- ref.go
- resources.go