Skip to content

Database ORM #10

@ZeroIntensity

Description

@ZeroIntensity

Waiting on #9, probably. Should probably support SQLite first.

Hypothetical API:

@model()
class User:
    name: str
    password: Hashed[str]
    id: Id[int] = auto_increment()

@post("/signup")
@body("data", User)
async def signup(data: User):
    await data.save()
    return "Created account"

Metadata

Metadata

Assignees

Labels

apiThis has to do with the Python API (view)complexThis should only be looked at by someone who knows what they're doingfeatureNew feature

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions