wu9007 / pocket Goto Github PK
View Code? Open in Web Editor NEW⛱ Pocket's core Object/Relational Mapping functionality
Home Page: https://leyan95.github.io/biscuits
License: MIT License
⛱ Pocket's core Object/Relational Mapping functionality
Home Page: https://leyan95.github.io/biscuits
License: MIT License
select * from tbl_user where code is null;
SELECT * FROM TBL_USER WHERE AGE IN(20, 21, 22, 26, 28);
SELECT
TBL_DIC_BASIC.UUID,
TBL_DIC_BASIC.TYPE_ID,
TBL_DIC_BASIC.PARENT_UUID,
TBL_DIC_BASIC.NAME,
TBL_DIC_BASIC.SPELL,
TBL_DIC_BASIC.CODE,
TBL_DIC_BASIC.SYSTEM_CODE,
TBL_DIC_BASIC.OPERATOR,
TBL_DIC_BASIC.OPERATE_TIME,
TBL_DIC_BASIC.MEMO,
TBL_DIC_BASIC.SORT,
TBL_DIC_BASIC.IS_LEAF,
TBL_DIC_STATIC.NAME AS IS_LEAF,
TBL_DIC_BASIC.IS_NEED_CHECK,
TBL_DIC_STATIC.NAME AS IS_NEED_CHECK,
TBL_DIC_BASIC.WARNING_DAYS,
TBL_DIC_BASIC.IS_ENABLE,SELECT
TBL_DIC_BASIC.UUID,
TBL_DIC_BASIC.TYPE_ID,
TBL_DIC_BASIC.PARENT_UUID,
TBL_DIC_BASIC.NAME,
TBL_DIC_BASIC.SPELL,
TBL_DIC_BASIC.CODE,
TBL_DIC_BASIC.SYSTEM_CODE,
TBL_DIC_BASIC.OPERATOR,
TBL_DIC_BASIC.OPERATE_TIME,
TBL_DIC_BASIC.MEMO,
TBL_DIC_BASIC.SORT,
TBL_DIC_BASIC.IS_LEAF,
TBL_DIC_STATIC.NAME AS IS_LEAF,
TBL_DIC_BASIC.IS_NEED_CHECK,
TBL_DIC_STATIC.NAME AS IS_NEED_CHECK,
TBL_DIC_BASIC.WARNING_DAYS,
TBL_DIC_BASIC.IS_ENABLE,
TBL_DIC_STATIC.NAME AS IS_ENABLE,
TBL_DIC_BASIC.IS_QUALIFIED,
TBL_DIC_STATIC.NAME AS IS_QUALIFIED,
TBL_DIC_BASIC.IS_DELETED
FROM
TBL_DIC_BASIC
LEFT JOIN TBL_DIC_STATIC ON TBL_DIC_BASIC.IS_LEAF = TBL_DIC_STATIC.UUID
LEFT JOIN TBL_DIC_STATIC ON TBL_DIC_BASIC.IS_NEED_CHECK = TBL_DIC_STATIC.UUID
LEFT JOIN TBL_DIC_STATIC ON TBL_DIC_BASIC.IS_ENABLE = TBL_DIC_STATIC.UUID
LEFT JOIN TBL_DIC_STATIC ON TBL_DIC_BASIC.IS_QUALIFIED = TBL_DIC_STATIC.UUID
WHERE 1=1
TBL_DIC_BASIC.IS_DELETED = ?
AND TBL_DIC_BASIC.TYPE_ID = ?
LIMIT 0,
13
TBL_DIC_STATIC.NAME AS IS_ENABLE,
TBL_DIC_BASIC.IS_QUALIFIED,
TBL_DIC_STATIC.NAME AS IS_QUALIFIED,
TBL_DIC_BASIC.IS_DELETED
FROM
TBL_DIC_BASIC
LEFT JOIN TBL_DIC_STATIC ON TBL_DIC_BASIC.IS_LEAF = TBL_DIC_STATIC.UUID
LEFT JOIN TBL_DIC_STATIC ON TBL_DIC_BASIC.IS_NEED_CHECK = TBL_DIC_STATIC.UUID
LEFT JOIN TBL_DIC_STATIC ON TBL_DIC_BASIC.IS_ENABLE = TBL_DIC_STATIC.UUID
LEFT JOIN TBL_DIC_STATIC ON TBL_DIC_BASIC.IS_QUALIFIED = TBL_DIC_STATIC.UUID
支持 for update 方便使用分布式事务。
update tbl_order set price = price+1
select code from tbl_order where prequantity > quantity
更新添加条件。
配置定时检测连接池中的空闲连接,手动刷新(注意并发问题)
针对数据库表结构的DDL语句进行持久化,以便于升级或变更数据库表结构时支持可重复执行。
实现此功能后,可以做到用户程序临时升级或变更不会导致正常升级情况下发生由于DDL语句不可重复执行导致的升级报错。也可以一定程度上避免漏提交DDL语句带来的BUG。
更新实体时检测脏数据时忽略带有指定注解的字段。
如:
对配置文件中的数据库密码进行加密。
换个锁🔒
关联表修改后通知缓存中心进行清理。
存储过程
vol
需要使用对象方式进行 join
查询。
自定义算法,将数据分别插入到特定表,以支持da'量数据。
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.