Skip to content

Pydantic field validation and direct initialization #1

@gvwilson

Description

@gvwilson

I'm currently using SQLModel for a project, but would like to move to something lighter-weight. ORMagic looks like a good fit, but I can't tell if it supports Pydantic-style field validation (e.g., the "name" field must be a string of length greater than zero, etc.). I'd also be grateful if you could tell me whether there's an (undocumented?) way to initialize the database connection directly, without using an environment variable - in particular, I'd like to use :memory: for testing. Thanks - @gvwilson

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions