Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsAutoIncrement ¶ added in v1.0.0
IsAutoIncrement returns true if the data type is auto-incrementing (serial/bigserial)
func ValidatePrimaryKeyDatatype ¶
ValidatePrimaryKeyDatatype validates primary key data types
Types ¶
type PKType ¶ added in v1.0.0
type PKType string
PKType represents the type category of a primary key
const ( // PKTypeUUID is a constant value for primary key type UUID. PKTypeUUID PKType = "uuid" // PKTypeInt32 is a constant value for primary key type int32. PKTypeInt32 PKType = "int32" // PKTypeInt64 is a constant value for primary key type int64. PKTypeInt64 PKType = "int64" // PKTypeString is a constant value for primary key type string. PKTypeString PKType = "string" )
func ClassifyPrimaryKeyType ¶ added in v1.0.0
ClassifyPrimaryKeyType determines the PKType for a given SQL data type
Click to show internal directories.
Click to hide internal directories.