Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Register
  • Sign in
  • erp5 erp5
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
  • Merge requests 144
    • Merge requests 144
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Jobs
  • Commits
Collapse sidebar
  • nexedinexedi
  • erp5erp5
  • Merge requests
  • !2231

Draft: provide sqlite for catalog

  • Review changes

  • Download
  • Patches
  • Plain diff
Open Xiaowu Zhang requested to merge xiaowu.zhang/erp5:erp5_sqlite into master Jan 19, 2026
  • Overview 11
  • Commits 16
  • Pipelines 0
  • Changes 697

Context

jp ask to provide sqlite support for catalog

Idea

It’s not possible to make SQLite support all BT5s in one fell swoop. It need to support them one by one in an easy way.

Since ERP5 already supports multiple catalogs, I modify BusinessTemplate.py to support multiple catalogs as well.

When installing a BT5, if the SQL methods in the BT5 are not related to the current catalog, we can still install the BT5 but without effect.

To support it, we would need to create the corresponding catalog SQL methods.

Steps to provide minimal support of erp5 core functionnality

  • move sql method from erp5_core to erp5_mysql_innodb_catalog
  • Complete support for installing different catalog storage when creating ERP5
  • add product/ZMySQLiteDA, load related DA according to storage choose
  • add CMFActivity/Activity/MySQLite, load related activity according to storage choose
  • add erp5_sqlite_catalog to hold sql sqlite version
  • make BusinessTemplate support multi catalog
  • add sqlite version in erp5_base
  • make ZSQLCatalog support sqlite
  • add sqlite full text version
  • make ERP5Catalog support sqlite
  • generalise sqlquote in product/ZSQLCatalog/Utils

test result:

ERP5 with SQLite

ERP5 with MySQL

Edited Mar 27, 2026 by Xiaowu Zhang
Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: erp5_sqlite
GitLab Nexedi Edition | About GitLab | About Nexedi | 沪ICP备2021021310号-2 | 沪ICP备2021021310号-7