{"repo":"daireto/sqlactive","free":true,"listed":false,"github":"https://github.com/daireto/sqlactive","clone":"git clone https://github.com/daireto/sqlactive.git","description":"A lightweight and asynchronous ActiveRecord-style wrapper for SQLAlchemy. Brings Django-like queries, automatic timestamps, nested eager loading, and dictionary serialization for SQLAlchemy models.","language":"Python","stars":10,"topics":["active-record","activerecord","django-like","django-queries","eager-load","eager-loading","orm","orm-extension","serialization","sqlalchemy"],"license":"MIT","category":"databases-storage","readme_excerpt":"SQLActive A lightweight and asynchronous ActiveRecord-style wrapper for SQLAlchemy. Brings Django-like queries, automatic timestamps, nested eager loading, and serialization/deserialization for SQLAlchemy models. Heavily inspired by sqlalchemy-mixins. Visit the documentation website. Table of Contents - Features - Requirements - Installation - Quick Start - 1. Define the Models - 2. Initialize the Database - 3. Perform CRUD Operations - 4. Perform Bulk Operations - 5. Perform Queries - 6. Manage Timestamps - 7. Serialization and Deserialization - Documentation - Contributing - License - Support Features - Asynchronous Support : Async operations for better scalability. - ActiveRecord-like methods : Perform CRUD operations with a syntax similar to Peewee. - Django-like queries : Perform intuitive and expressive queries. - Nested eager loading : Load nested relationships efficiently. - Automatic timestamps : Auto-manage created at and updated at fields. - Serialization/deserialization : Serialize and deserialize models to/from dict or JSON easily. Requirements - Python =3.10 - SQLAlchemy =2.0.0 - typing extensions =4.5.0 (for Python [!WARNING] When defining a BaseModel class, don't forget to set abstract to True in the base class to avoid creating tables for the base class. [!TIP] The models can directly inherit from the ActiveRecordBaseModel class: However, it is recommended to define a base model class for your models and inherit from it. Your base model class can also inherit","default_branch":null,"files":null,"tree":[],"storefront":"/r/daireto","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/daireto/sqlactive/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}