Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Column ¶
func (*Column) PrefixName ¶
type FieldType ¶
type FieldType string
const ( SQLUnknown FieldType = "" SQLBoolean FieldType = "boolean" SQLSmallInt FieldType = "smallint" SQLInteger FieldType = "integer" SQLBigInt FieldType = "bigint" SQLReal FieldType = "real" SQLDouble FieldType = "double precision" SQLText FieldType = "text" SQLBytea FieldType = "bytea" SQLTimestampTimezone FieldType = "timestamp with time zone" SQLTimestamp FieldType = "timestamp" SQLDate FieldType = "date" )
func ProtoTypeToSQL ¶
func ProtoTypeToSQL(kind protoreflect.Kind) (FieldType, error)
type ForeignKeyConstraint ¶
type PrimaryKeyConstraint ¶
type PrimaryKeyConstraint struct {
Columns []*Column
}
func (*PrimaryKeyConstraint) Schema ¶
func (p *PrimaryKeyConstraint) Schema() string
Click to show internal directories.
Click to hide internal directories.