omymodels
omymodels copied to clipboard
O!My Models (omymodels) is a library to generate Pydantic, Dataclasses, GinoORM Models, SqlAlchemy ORM, SqlAlchemy Core Table, Models from SQL DDL. And convert one models to another.
**Describe the bug** When a column is set as NOT NULL and a foreign key is added, `Positional argument cannot appear after keyword arguments` error arises in `models.py`. **To Reproduce**...
Would you be so kind an consider to to add support for transform e.g. Pydal Tables definitions to SQLAlchemy table defintions? If that would be something easy for you? Or...
**Describe the bug** ddl with `DEFAULT CHARSET` leads to ``` Traceback (most recent call last): File "/home/hrehfeld/projects/ext/omymodels/.venv/bin/omm", line 8, in sys.exit(main()) File "/home/hrehfeld/projects/ext/omymodels/.venv/lib/python3.10/site-packages/omymodels/cli.py", line 76, in main result = create_models(...
Any update if there will be SQL Alchemy 2 support?
**Is your feature request related to a problem? Please describe.** The pydantic BaseModel (as well as dataclasses) validate the data on instantiation **Describe the solution you'd like** ```starting from FIELD1...
**Describe the bug** I cannot use simple-ddl-generator with omymodels together because omymodels depends on the old version of table-meta. I use poetry to manage my dependent and it does not...
**Is your feature request related to a problem? Please describe.** The packages is beautiful and makes greate work with make a SQL to a model. I repair unfortunately that Omymodels...
It would be really nice and helpful if it were possible to have SQLAlchemy model "split" in to separate, schema specific, files with a schema specific Base. As an example,...
**Is your feature request related to a problem? Please describe.** When converting sql type `real` to sqlalchemy, it is changed to `real()` but it should be `sa.Real` **Describe the solution...
I've added the complete types for MySQL and PostgreSQL. Correct pydantic types are now generated. ```mysql CREATE TABLE test_table ( id INT NOT NULL AUTO_INCREMENT, tiny_int_example TINYINT DEFAULT 0, small_int_example...