{"id":50509992,"url":"https://github.com/rhosocial/python-activerecord-mariadb","last_synced_at":"2026-06-02T19:30:25.711Z","repository":{"id":351299722,"uuid":"939869186","full_name":"rhosocial/python-activerecord-mariadb","owner":"rhosocial","description":"A MariaDB backend implementation that brings MariaDB's robust features and performance optimizations to the ActiveRecord pattern while maintaining its elegant Pythonic interface.","archived":false,"fork":false,"pushed_at":"2026-05-16T18:03:53.000Z","size":531,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2026-05-16T20:19:56.494Z","etag":null,"topics":["activerecord","database","mariadb","orm","python"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/rhosocial.png","metadata":{"files":{"readme":"README.md","changelog":"changelog.d/.gitkeep","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-02-27T08:40:41.000Z","updated_at":"2026-04-12T15:48:16.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/rhosocial/python-activerecord-mariadb","commit_stats":null,"previous_names":["rhosocial/python-activerecord-mariadb"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/rhosocial/python-activerecord-mariadb","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rhosocial%2Fpython-activerecord-mariadb","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rhosocial%2Fpython-activerecord-mariadb/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rhosocial%2Fpython-activerecord-mariadb/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rhosocial%2Fpython-activerecord-mariadb/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rhosocial","download_url":"https://codeload.github.com/rhosocial/python-activerecord-mariadb/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rhosocial%2Fpython-activerecord-mariadb/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33834010,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-02T02:00:07.132Z","response_time":109,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["activerecord","database","mariadb","orm","python"],"created_at":"2026-06-02T19:30:24.688Z","updated_at":"2026-06-02T19:30:25.700Z","avatar_url":"https://github.com/rhosocial.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# rhosocial ActiveRecord MariaDB Backend\n\n[![PyPI version](https://badge.fury.io/py/rhosocial-activerecord-mariadb.svg)](https://badge.fury.io/py/rhosocial-activerecord-mariadb)\n[![Python](https://img.shields.io/pypi/pyversions/rhosocial-activerecord-mariadb.svg)](https://pypi.org/project/rhosocial-activerecord-mariadb/)\n[![Tests](https://github.com/rhosocial/python-activerecord-mariadb/actions/workflows/test.yml/badge.svg)](https://github.com/rhosocial/python-activerecord-mariadb/actions)\n[![Coverage Status](https://codecov.io/gh/rhosocial/python-activerecord-mariadb/branch/main/graph/badge.svg)](https://app.codecov.io/gh/rhosocial/python-activerecord-mariadb/tree/main)\n[![License](https://img.shields.io/github/license/rhosocial/python-activerecord-mariadb.svg)](https://github.com/rhosocial/python-activerecord-mariadb/blob/main/LICENSE)\n[![Powered by vistart](https://img.shields.io/badge/Powered_by-vistart-blue.svg)](https://github.com/vistart)\n\n\u003cdiv align=\"center\"\u003e\n    \u003cimg src=\"https://raw.githubusercontent.com/rhosocial/python-activerecord/main/docs/images/logo.svg\" alt=\"rhosocial ActiveRecord Logo\" width=\"200\"/\u003e\n    \u003cp\u003eMariaDB backend implementation for rhosocial-activerecord, providing a robust and optimized MariaDB database support.\u003c/p\u003e\n\u003c/div\u003e\n\n## Overview\n\nThis package provides MariaDB backend support for the [rhosocial-activerecord](https://github.com/rhosocial/python-activerecord) ORM framework. It enables seamless integration with MariaDB databases while leveraging all the features of the ActiveRecord pattern implementation.\n\n## Features\n\n\u003e This project is still under development and features are subject to change. Please stay tuned for the latest changes.\n\n- 🚀 Optimized MariaDB-specific query generation\n- 🔒 Full support for MariaDB's unique features\n- 📦 Connection pooling support (optional)\n- 🔄 Comprehensive transaction management\n- 🔍 Advanced query capabilities specific to MariaDB\n- 🔌 Simple configuration and setup\n\n## Requirements\n\n- Python 3.8+\n- rhosocial-activerecord 1.0.0+\n- mariadb 1.1.0+\n\n## Installation\n\n```bash\n# Basic installation\npip install rhosocial-activerecord-mariadb\n\n# With connection pooling support\npip install rhosocial-activerecord-mariadb[pooling]\n\n# With development tools\npip install rhosocial-activerecord-mariadb[dev]\n```\n\n## Usage\n\n```python\nfrom rhosocial.activerecord import ActiveRecord\nfrom rhosocial.activerecord.backend.impl.mariadb.backend import MariaDBBackend\nfrom rhosocial.activerecord.backend.typing import ConnectionConfig\nfrom datetime import datetime\nfrom typing import Optional\n\nclass User(ActiveRecord):\n    __table_name__ = 'users'\n    \n    id: int\n    name: str\n    email: str\n    created_at: datetime\n    deleted_at: Optional[datetime] = None\n\n# Configure with MariaDB backend\nUser.configure(\n    ConnectionConfig(\n        host='localhost',\n        port=3306,\n        database='myapp',\n        user='dbuser',\n        password='dbpassword'\n    ),\n    backend_class=MariaDBBackend\n)\n\n# Create a table (if not exists)\nUser.create_table_if_not_exists()\n\n# Create a new user\nuser = User(name='John Doe', email='john@example.com', created_at=datetime.now())\nuser.save()\n\n# Query users\nactive_users = User.query() \\\n    .where('deleted_at IS NULL') \\\n    .order_by('created_at DESC') \\\n    .all()\n\n# Update user\nuser.name = 'Jane Doe'\nuser.save()\n\n# Delete user (soft delete if implemented)\nuser.delete()\n```\n\n## Advanced MariaDB Features\n\nThis backend supports MariaDB-specific features and optimizations:\n\n```python\n# Using MariaDB fulltext search\nresults = User.query() \\\n    .where('MATCH(name, email) AGAINST(? IN BOOLEAN MODE)', ('+John -Doe', )) \\\n    .all()\n\n# Using MariaDB JSON operations\nresults = User.query() \\\n    .where('JSON_EXTRACT(settings, \"$.notifications\") = ?', ('enabled', )) \\\n    .all()\n\n# Batch insert with ON DUPLICATE KEY UPDATE\nUser.batch_insert_or_update([user1, user2, user3])\n```\n\n## Documentation\n\nComplete documentation is available at [python-activerecord MariaDB Backend](https://docs.python-activerecord.dev.rho.social/backends/mariadb.html)\n\n## Contributing\n\nWe welcome and value all forms of contributions! For details on how to contribute, please see our [Contributing Guide](https://github.com/rhosocial/python-activerecord-mariadb/blob/main/CONTRIBUTING.md).\n\n## License\n\n[![license](https://img.shields.io/github/license/rhosocial/python-activerecord-mariadb.svg)](https://github.com/rhosocial/python-activerecord-mariadb/blob/main/LICENSE)\n\nCopyright © 2025 [vistart](https://github.com/vistart)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frhosocial%2Fpython-activerecord-mariadb","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frhosocial%2Fpython-activerecord-mariadb","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frhosocial%2Fpython-activerecord-mariadb/lists"}