Versions in this module Expand all Collapse all v0 v0.0.3 Oct 29, 2024 v0.0.2 Oct 24, 2024 v0.0.1 Oct 24, 2024 Changes in this version + const DriverName + const GeneratedTypeAlways + const GeneratedTypeByDefault + const IndexTypeBRIN + const IndexTypeBTree + const IndexTypeGIN + const IndexTypeGiST + const IndexTypeHash + const IndexTypeSPGiST + const PartitionTypeHash + const PartitionTypeList + const PartitionTypeRange + const TypeArray + const TypeBigInt + const TypeBigSerial + const TypeBit + const TypeBitVar + const TypeBool + const TypeBoolean + const TypeBox + const TypeBytea + const TypeCIDR + const TypeChar + const TypeCharVar + const TypeCharacter + const TypeCircle + const TypeDate + const TypeDateMultiRange + const TypeDateRange + const TypeDecimal + const TypeDouble + const TypeFloat + const TypeFloat4 + const TypeFloat8 + const TypeGeometry + const TypeInet + const TypeInt + const TypeInt2 + const TypeInt4 + const TypeInt4MultiRange + const TypeInt4Range + const TypeInt64 + const TypeInt8 + const TypeInt8MultiRange + const TypeInt8Range + const TypeInteger + const TypeInterval + const TypeJSON + const TypeJSONB + const TypeLine + const TypeLseg + const TypeMACAddr + const TypeMACAddr8 + const TypeMoney + const TypeNumMultiRange + const TypeNumRange + const TypeNumeric + const TypePath + const TypePoint + const TypePolygon + const TypeReal + const TypeSerial + const TypeSerial2 + const TypeSerial4 + const TypeSerial8 + const TypeSmallInt + const TypeSmallSerial + const TypeTSMultiRange + const TypeTSQuery + const TypeTSRange + const TypeTSTZMultiRange + const TypeTSTZRange + const TypeTSVector + const TypeText + const TypeTime + const TypeTimeTZ + const TypeTimeWOTZ + const TypeTimeWTZ + const TypeTimestamp + const TypeTimestampTZ + const TypeTimestampWOTZ + const TypeTimestampWTZ + const TypeUUID + const TypeUserDefined + const TypeVarChar + const TypeXML + var DefaultDiff schema.Differ = &sqlx.Diff + var DefaultPlan migrate.PlanApplier = &planApply + var EvalHCL = schemahcl.EvalFunc(evalSpec) + var EvalHCLBytes = specutil.HCLBytesFunc(EvalHCL) + var MarshalHCL = schemahcl.MarshalerFunc(func(v any) ([]byte, error) { ... }) + var TypeRegistry = schemahcl.NewRegistry(schemahcl.WithSpecFunc(typeSpec), schemahcl.WithParser(ParseType), ...) + func FormatType(t schema.Type) (string, error) + func MarshalSpec(v any, marshaler schemahcl.Marshaler) ([]byte, error) + func Open(db schema.ExecQuerier) (migrate.Driver, error) + func ParseType(typ string) (schema.Type, error) + type ArrayType struct + T string + func (a *ArrayType) Underlying() schema.Type + type BitType struct + Len int64 + T string + type Cascade struct + type CheckColumns struct + Columns []string + type Concurrently struct + type Constraint struct + N string + T string + func (c Constraint) IsUnique() bool + type CurrencyType struct + T string + type DiffOptions struct + ConcurrentIndex struct{ ... } + type DomainType struct + Attrs []schema.Attr + Checks []*schema.Check + Default schema.Expr + Deps []schema.Object + Null bool + Schema *schema.Schema + T string + func (d *DomainType) Ref() *schemahcl.Ref + func (d *DomainType) SpecName() string + func (d *DomainType) SpecType() string + func (d *DomainType) Underlying() schema.Type + type Driver struct + func (*Driver) FormatType(t schema.Type) (string, error) + func (*Driver) ParseType(s string) (schema.Type, error) + func (*Driver) ScanStmts(input string) ([]*migrate.Stmt, error) + func (*Driver) StmtBuilder(opts migrate.PlanOptions) *sqlx.Builder + func (d *Driver) CheckClean(ctx context.Context, revT *migrate.TableIdent) error + func (d *Driver) Lock(ctx context.Context, name string, timeout time.Duration) (schema.UnlockFunc, error) + func (d *Driver) NormalizeRealm(ctx context.Context, r *schema.Realm) (*schema.Realm, error) + func (d *Driver) NormalizeSchema(ctx context.Context, s *schema.Schema) (*schema.Schema, error) + func (d *Driver) RealmRestoreFunc(desired *schema.Realm) migrate.RestoreFunc + func (d *Driver) SchemaRestoreFunc(desired *schema.Schema) migrate.RestoreFunc + func (d *Driver) Snapshot(ctx context.Context) (migrate.RestoreFunc, error) + func (d *Driver) Version() string + type Identity struct + Generation string + Sequence *Sequence + type IndexColumnProperty struct + NullsFirst bool + NullsLast bool + type IndexInclude struct + Columns []*schema.Column + type IndexNullsDistinct struct + V bool + type IndexOpClass struct + Default bool + Name string + Params []struct{ ... } + func (o *IndexOpClass) DefaultFor(idx *schema.Index, part *schema.IndexPart) (bool, error) + func (o *IndexOpClass) Equal(x *IndexOpClass) bool + func (o *IndexOpClass) String() string + func (o *IndexOpClass) UnmarshalText(text []byte) error + type IndexPredicate struct + P string + type IndexStorageParams struct + AutoSummarize bool + PagesPerRange int64 + type IndexType struct + T string + type IntervalType struct + F string + Precision *int + T string + type NetworkType struct + Len int64 + T string + type NoInherit struct + type OID struct + V int64 + type OIDType struct + T string + type Partition struct + Parts []*PartitionPart + T string + type PartitionPart struct + Attrs []schema.Attr + C *schema.Column + X schema.Expr + type PseudoType struct + T string + type RangeType struct + T string + type ReferenceOption schema.ReferenceOption + func (o *ReferenceOption) Scan(v any) error + func (o ReferenceOption) String() string + type Sequence struct + Attrs []schema.Attr + Cache int64 + Cycle bool + Increment int64 + Last int64 + Max *int64 + Min *int64 + Name string + Owner struct{ ... } + Schema *schema.Schema + Start int64 + Type schema.Type + type SerialType struct + Precision int + SequenceName string + T string + func (s *SerialType) IntegerType() *schema.IntegerType + func (s *SerialType) SetType(t *schema.IntegerType) + type TextSearchType struct + T string + type UUIDType = schema.UUIDType + type UserDefinedType struct + T string + type XMLType struct + T string