Skip to content
New issue

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

Investigate using an ORM #179

Open
mwinokan opened this issue Nov 14, 2024 · 0 comments
Open

Investigate using an ORM #179

mwinokan opened this issue Nov 14, 2024 · 0 comments
Labels
Database Changes to database schema Testing / Research Testing, verification, or research

Comments

@mwinokan
Copy link
Owner

mwinokan commented Nov 14, 2024

  • SQLAlchemy most popular
  • Django ORM best featureset for migrations and web app, can it be used without Django itself?
  • Pony easy to grasp but quite opinionated

comparison blog post

Django ORM without Django

example setup
Models docs

import django
from django.conf import settings

settings.configure(
    DATABASES={
        'default': {
            'ENGINE': '<your_engine>',
            'NAME': '<database_name>',
            'HOST': '<hostname_or_ip>',
            'PORT': '<port>',
            'USER': '<user>',
            'PASSWORD': '<super_secret_password>',   
        }
    },
    INSTALLED_APPS=[
        '<your_app>',
    ]
)
django.setup()
@mwinokan mwinokan added Database Changes to database schema Testing / Research Testing, verification, or research labels Nov 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Database Changes to database schema Testing / Research Testing, verification, or research
Projects
None yet
Development

No branches or pull requests

1 participant