Documentation ¶
Index ¶
- type ApplyResult
- type MigrationDirection
- type ProjectMigrate
- type ProjectMigrateOption
- type ProjectMigrationApplierOption
- type ProjectMigrationDeleterOption
- func DeleteAllMigrations() ProjectMigrationDeleterOption
- func DeleteOnAllDatabases() ProjectMigrationDeleterOption
- func DeleteOnDatabase(databaseName string, databaseKind hasura.SourceKind) ProjectMigrationDeleterOption
- func DeleteOnlyOnServer() ProjectMigrationDeleterOption
- func DeleteVersion(version uint64) ProjectMigrationDeleterOption
- type ProjectMigrationStatusOption
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ApplyResult ¶
type ApplyResult commands.MigrateApplyResult
type MigrationDirection ¶
type MigrationDirection string
const MigrationDirectionDown MigrationDirection = "down"
const MigrationDirectionUp MigrationDirection = "up"
type ProjectMigrate ¶
type ProjectMigrate struct {
// contains filtered or unexported fields
}
func NewProjectMigrate ¶
func NewProjectMigrate(projectDirectory string, opts ...ProjectMigrateOption) (*ProjectMigrate, error)
func (*ProjectMigrate) Apply ¶
func (p *ProjectMigrate) Apply(opts ...ProjectMigrationApplierOption) ([]ApplyResult, error)
func (*ProjectMigrate) Delete ¶ added in v2.17.0
func (p *ProjectMigrate) Delete(opts ...ProjectMigrationDeleterOption) error
func (*ProjectMigrate) StatusJSON ¶
func (p *ProjectMigrate) StatusJSON(opts ...ProjectMigrationStatusOption) (io.Reader, error)
type ProjectMigrateOption ¶
type ProjectMigrateOption func(*ProjectMigrate)
func WithAdminSecret ¶
func WithAdminSecret(adminSecret string) ProjectMigrateOption
func WithEndpoint ¶
func WithEndpoint(endpoint string) ProjectMigrateOption
type ProjectMigrationApplierOption ¶
type ProjectMigrationApplierOption func(applier *projectMigrationsApplier)
func ApplyOnAllDatabases ¶
func ApplyOnAllDatabases() ProjectMigrationApplierOption
func ApplyOnDatabaseName ¶
func ApplyOnDatabaseName(databaseName string) ProjectMigrationApplierOption
func ApplyVersion ¶
func ApplyVersion(version string, direction MigrationDirection) ProjectMigrationApplierOption
func ApplyWithSkipExecution ¶ added in v2.6.0
func ApplyWithSkipExecution() ProjectMigrationApplierOption
type ProjectMigrationDeleterOption ¶ added in v2.17.0
type ProjectMigrationDeleterOption func(deleter *projectMigrationsDeleter)
func DeleteAllMigrations ¶ added in v2.17.0
func DeleteAllMigrations() ProjectMigrationDeleterOption
func DeleteOnAllDatabases ¶ added in v2.17.0
func DeleteOnAllDatabases() ProjectMigrationDeleterOption
func DeleteOnDatabase ¶ added in v2.17.0
func DeleteOnDatabase(databaseName string, databaseKind hasura.SourceKind) ProjectMigrationDeleterOption
func DeleteOnlyOnServer ¶ added in v2.17.0
func DeleteOnlyOnServer() ProjectMigrationDeleterOption
func DeleteVersion ¶ added in v2.17.0
func DeleteVersion(version uint64) ProjectMigrationDeleterOption
type ProjectMigrationStatusOption ¶
type ProjectMigrationStatusOption func(applier *projectMigrationsStatus)
func StatusAllDatabases ¶
func StatusAllDatabases() ProjectMigrationStatusOption
Click to show internal directories.
Click to hide internal directories.