Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Option ¶
type Option interface {
UpOption
StatusOption
}
Option configures every function of this package.
func WithDatabase ¶
func WithDatabase(driver dbdiffdrivers.DriverName, url string) Option
WithDatabase names the database that receives the migrations. An empty driver value starts the detection of the engine from the url value, which holds a SQLite path or a PostgreSQL connection string.
func WithDirectory ¶
WithDirectory names the directory that holds the migration files.
func WithOutput ¶
WithOutput names the writer that receives one progress line per applied file. Without this option the lines go away.
func WithSchema ¶
WithSchema names the PostgreSQL schema. Without this option the search path of the connection string applies.
type StatusOption ¶
type StatusOption interface {
// contains filtered or unexported methods
}
StatusOption configures Status.
Click to show internal directories.
Click to hide internal directories.