Comments (7)
您好,这两天研究了一下postgresql的支持,结论是要想做到同时支持mysql和postgresql,那么就得把所有的sql,用多数据库支持的orm,这回导致dtm的客户端很重,预计不会那么快去做这方面的工作。
dtm的服务端使用了gorm,支持postgres,目前我在dtm加了postgres分支,这个分支下,能够跑通saga的例子。
from dtm.
这个在计划中,目前dtm仅仅依赖了gorm,不依赖底层具体是什么数据库。
后续会在postgresql上面做测试,给出示例
from dtm.
您好,这两天研究了一下postgresql的支持,结论是要想做到同时支持mysql和postgresql,那么就得把所有的sql,用多数据库支持的orm,这回导致dtm的客户端很重,预计不会那么快去做这方面的工作。
dtm的服务端使用了gorm,支持postgres,目前我在dtm加了postgres分支,这个分支下,能够跑通saga的例子。
是否可以考虑使用github.com/doug-martin/goqu 这样更轻量级的包而不是厚重的orm?
from dtm.
@XIELongDragon 对于dtm服务器来说,用gorm的代价还好,反正一个服务,最后生成的文件不大。dtmcli是单独拆出来的包,不依赖gorm的,对使用dtm的程序来说,不会因为dtm,引入gorm
看了你推荐的库,貌似没有对高级功能例如insert ignore的支持,而dtm用到了
from dtm.
insert ignore你是指记录如果存在就skip吗?有呀
tx.
Insert(yourTable).
Rows(yourData).
OnConflict(goqu.DoNothing()).
Executor().
Exec()
还是指某些field在插入是应该忽略?也是有的
type MyData struct {
ID uint64 `db:"id" goqu:"skipinsert,skipupdate"`
}
from dtm.
收到,这个留待后续优化,或者社区有人帮忙做了这个事情,可以合并进来
from dtm.
@sb-child postgresql已完整支持 https://dtm.pub/character/supported-db.html
from dtm.
Related Issues (20)
- tcc模式下,Cancel阶段怎么拿到Try或者Confirm阶段生成的数据 HOT 1
- java客户端的子事务屏蔽实现不完整 HOT 1
- Can't go mod tidy HOT 3
- nacos HOT 8
- dtmcli-java的api问题 HOT 4
- docker compose 怎么配置文件读取配置文件 HOT 6
- dtmimp.DBExec需要返回数据ID HOT 1
- C# SAGA模式下,接口请求超时,会一直重试
- 怎么关闭浏览器的admin页面访问 HOT 1
- 微服务架构鉴权问题 HOT 1
- [New feature requested]Redis cluster support is actually needed HOT 1
- 返回错误{"message":"dtm panic: storage: NotFound"} HOT 3
- 使用方案求助 HOT 1
- cpu占用异常 HOT 1
- etcd有密码时,怎么使用用户名密码连接etcd做注册中心 HOT 2
- XA事务异常崩溃,dtm能处理吗 HOT 1
- 发送MSG、SAGA的Payloads建议不要用string数组
- 请问二阶消息需要处理幂等么?是否需要用只事务屏障?
- 请问这种场景应该怎么使用呀?需要根据条件再开启一个事务。
- Saga模式下,分支事务超时问题
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dtm.