Saiorm is a very lightweight translator for accessing kinds of database with the same syntax,including SQL and NoSQL.
It only translate python code and arguments to database statement,no longer need models.Directly operate the data in the database. No data type conversion, minimize the performance loss.
If you want to support other database,just implement like siaorm.PostgreSQL.ChainDB.
like Saiorm.PostgreSQL.CoherentDB and add a few driver code to Saiorm.init.
python version python3.6 and later.
Learn more.
MongoDB only support select,get,update,insert,insert_many,delete,increase,decrease,where,limit,order_by
SQL database:
- having
- check auto commit in SQLite
MongoDB:
group native function,BETWEEN,IN etc.
pyodbc:
https://www.jb51.net/article/143212.htm
字符串的处理全部改用 f 字符串,提高速度
已知问题:
autocommit 在 MySQL 事务中无效 PostgreSQL 单元测试有错误 test_increase test_group_by test_inner_join MySQL 报错 sql_mode=only_full_group_by 的解决方法: select @@global.sql_mode; set @@global.sql_mode=''; 去掉前面查询的 ONLY_FULL_GROUP_BY
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。