Skip to content

ScriptOptions implementation #8

@nvarscar

Description

@nvarscar

all .script() commands should support an optional parameter that would enforce certain behavior when scripting the object:

opt = ScriptOptions()
opt.alter_instead_of_create = True
cluster.tables['asd'].script(options=opt)

Proposed options:

  • Alter instead of create
  • Create if exists
  • include indexes (TBD)
  • include permissions
  • etc

Metadata

Metadata

Assignees

No one assigned

    Labels

    SQLInvolves knowledge of Postgres/SQLenhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions