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
Find a way to automatically generate schema for Models
schema = ''' drop table if exists post; create table model_name ( id integer primary key autoincrement, ... ); '''
A model must be something like this:
class A(Model): a = int # OK b = bool # TODO c = float # OK d = str # OK e = chr # TODO 'CHARACTER(1)' f = datetime # TODO 'DATETIME' convert to timestamp b = {'unique':true, 'type': str} # ... def __init__(self): pass class B(Model): one = A def __init__(self): pass class C(Model): many = [B] def __init__(self): pass
References:
The text was updated successfully, but these errors were encountered:
Auto gen basic schema: str, int, float. #2
5338836
No branches or pull requests
Find a way to automatically generate schema for Models
A model must be something like this:
References:
The text was updated successfully, but these errors were encountered: