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

adds support to retrieve Schema information from sqlite3 #10

Closed
WolfgangFahl opened this issue Aug 31, 2020 · 0 comments
Closed

adds support to retrieve Schema information from sqlite3 #10

WolfgangFahl opened this issue Aug 31, 2020 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@WolfgangFahl
Copy link
Owner

WolfgangFahl commented Aug 31, 2020

see https://stackoverflow.com/a/63671566/1497139

for

CREATE TABLE Person(name TEXT PRIMARY KEY,born DATE,numberInLine INTEGER,wikidataurl TEXT,age FLOAT,ofAge BOOLEAN,lastmodified TIMESTAMP)

a list of dicts:

[ {'name': 'Person', 
  'columns': [
    {'cid': 0, 'name': 'name', 'type': 'TEXT', 'notnull': 0, 'dflt_value': None, 'pk': 1}, 
    {'cid': 1, 'name': 'born', 'type': 'DATE', 'notnull': 0, 'dflt_value': None, 'pk': 0}, 
    {'cid': 2, 'name': 'numberInLine', 'type': 'INTEGER', 'notnull': 0, 'dflt_value': None, 'pk': 0}, 
   {'cid': 3, 'name': 'wikidataurl', 'type': 'TEXT', 'notnull': 0, 'dflt_value': None, 'pk': 0},
   {'cid': 4, 'name': 'age', 'type': 'FLOAT', 'notnull': 0, 'dflt_value': None, 'pk': 0}, 
   {'cid': 5, 'name': 'ofAge', 'type': 'BOOLEAN', 'notnull': 0, 'dflt_value': None, 'pk': 0}, 
   {'cid': 6, 'name': 'lastmodified', 'type': 'TIMESTAMP', 'notnull': 0, 'dflt_value': None, 'pk': 0}
  ]
}
]

should be returned

@WolfgangFahl WolfgangFahl added the enhancement New feature or request label Aug 31, 2020
@WolfgangFahl WolfgangFahl self-assigned this Aug 31, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant