Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ForeignKey ¶
type ForeignKey struct {
From string // column in this table
Table string // referenced table
To string // referenced column
}
ForeignKey describes a single-column relationship from this table to another.
type Schema ¶
type Schema struct {
Tables []Table
}
func FromSQL ¶
FromSQL materializes a declarative schema (a body of CREATE statements) into a throwaway database and returns the resulting Schema. This lets a checked-in schema.sql be compared against a live database with the normal diff engine.
Click to show internal directories.
Click to hide internal directories.