pydbantic
pydbantic copied to clipboard
A single model for shaping, creating, accessing, storing data within a Database
It's not possible to use easyauth with the latest encoding/databases version 0.6.0 since pydbantic depends on version 0.5.3. Is it possible to bump the version or are there any backwards...
Hi there, Working with dates can be quite challenging, for example when trying to add something like "creation_date" or "updated_at" in plain SQLalchemy we would do something like : ```python...
In [the README](https://github.com/codemation/pydbantic/blob/main/README.md) we see an entity named `Positions` however the entity should be singular not plural. Rename it to `Position` for it to be consistent with the other entities.
IMHO, It would be essential that `PrimaryKey()` generates automatically an id, it could even depend on the type we are passing, for example : ```python class Employee(DataBaseModel): id: str =...
### What does happen ```python from pydbantic import DataBaseModel import asyncio from pydbantic import Database class ClassA(DataBaseModel): a_attribute: int class ClassB(DataBaseModel): b_attribute: int b_foreign_key_1: ClassA = None b_foreign_key_2: ClassA =...
Hi there, Whats the status of this projects readiness for pydantic 2 ? I found https://github.com/codemation/pydbantic/issues/60 in the closed issues, pinning the pydantic version. Im trying to make use of...
Hi, Im trying to get my test suite to run using an in memory sqlite db, as its very slow using one on the file system, but im finding failures,...
```py class User(DataBaseModel): uuid: str = PrimaryKey(default=generate_uuid) class Step(DataBaseModel): """ A step model, for the database Links to an owner """ uuid: int = PrimaryKey(autoincrement=True) user_uuid: str = ForeignKey(User, "uuid")...