Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ScriptOptions implementation #8

Open
nvarscar opened this issue Feb 20, 2023 · 0 comments
Open

ScriptOptions implementation #8

nvarscar opened this issue Feb 20, 2023 · 0 comments
Labels
enhancement New feature or request SQL Involves knowledge of Postgres/SQL

Comments

@nvarscar
Copy link
Collaborator

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
@nvarscar nvarscar added enhancement New feature or request SQL Involves knowledge of Postgres/SQL labels Feb 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request SQL Involves knowledge of Postgres/SQL
Projects
None yet
Development

No branches or pull requests

1 participant