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

add Table.sqlite3_ddl() method that returns a SQL DDL statement #187

Merged
merged 3 commits into from
Oct 29, 2024

Conversation

karlcz
Copy link
Contributor

@karlcz karlcz commented Oct 29, 2024

This is a basic table definition with no foreign keys and no default expressions, suitable for capturing table dumps from ERMrest.

Table names are generated as "schema:table" to handle the fact that ERMrest has named schemas but SQLite3 is mostly a single schema namespace per database file.

This is a basic table definition with no foreign keys and
no default expressions, suitable for capturing table dumps from
ERMrest.

Table names are generated as "schema:table" to handle the fact
that ERMrest has named schemas but SQLite3 is mostly a single
schema namespace per database file.
deriva/core/ermrest_model.py Outdated Show resolved Hide resolved
@robes
Copy link
Contributor

robes commented Oct 29, 2024

Looks good to me. I ran tests too.

@karlcz karlcz merged commit 3761a14 into master Oct 29, 2024
@karlcz karlcz deleted the sqlite_ddl branch October 29, 2024 20:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants