We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Suppose we have a new schema as a text. How to extract columns from new schema same as PRAGMA table_info?
Actually I want to compare new schema (provided as a text string) with existing one in current database.
Sample:
new_schema=''' CREATE TABLE sqlite_schema( type text, name text, tbl_name text, rootpage integer, sql text ) ''' parser = sql_metadata.Parser(new_schema) columns = parser.columns
parser.columns just returns columns name, but I need a format same as PRAGMA table_info: (cid, name, type, notnull, dflt_value, pk)
(cid, name, type, notnull, dflt_value, pk)
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Suppose we have a new schema as a text. How to extract columns from new schema same as PRAGMA table_info?
Actually I want to compare new schema (provided as a text string) with existing one in current database.
Sample:
parser.columns just returns columns name, but I need a format same as PRAGMA table_info:
(cid, name, type, notnull, dflt_value, pk)
The text was updated successfully, but these errors were encountered: