Skip to content

Instantly share code, notes, and snippets.

@rodion-solovev-7
Last active March 31, 2022 14:46
Show Gist options
  • Save rodion-solovev-7/117164a4f33686f2f97e7fe55ee9fc6b to your computer and use it in GitHub Desktop.
Save rodion-solovev-7/117164a4f33686f2f97e7fe55ee9fc6b to your computer and use it in GitHub Desktop.
Generate SQL for DB creation (SQLAlchemy)

ORM->SQL

A small useful script that will generate an SQL script in the current working directory to setup the database

CREATE TABLE my_table (
id SERIAL NOT NULL,
my_data VARCHAR,
PRIMARY KEY (id)
);
Display the source blob
Display the rendered blob
Raw
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment