Comments (4)
这个我本人认为,可以不支持,你可以同时连接两个数据库,在应用层面自己解决这个问题。
from xorm.
的确应用层什么都能解决,就像缓存一样,xorm本来可以没有缓存,也可以在应用层解决.
但为什么建议在orm内部就支持呢?因为从底层支持和应用层支持有本质上的区别,应用层支持很多时候粒度非常大,成本很高,在底层就处理这个的话就比较容易做到,而且事成之后在基于xorm的架构里就可以轻松通过开关设置开启这样的功能,这对于用户节约开发时间和提升程序性能都极有好处!
from xorm.
this is a good and actually common use case, but I would solved the problem by writing proxy driver, which allow multiple hosts, and declaring roles inputted as part of dataSourceName param
from xorm.
referenced #78
from xorm.
Related Issues (20)
- sync2不支持同步mysql中MEMORY引擎的数据表V0.7.0
- Invalid object name 'SYS.INDEXES' on SQL Server case sensitive collate HOT 1
- CTE (Common Table Expression) with aliases support
- 事务无法执行afterClosure HOT 1
- go mod download get stuck at xorm.io/core HOT 2
- lost table name with session when insert multiple Slice
- xorm mock CURD HOT 2
- [xorm.NewEngine] I gave wrong 'dataSourceName' but can't panic the error HOT 2
- 文档的问题 HOT 1
- SQLite to mssql dump
- undefined: builder.StringBuilder HOT 3
- Oracle Dialect Quote Brackets HOT 1
- Mysql split-table HOT 2
- driver.Valuer not checked on Insert() HOT 1
- Add support for vertica
- Avoid varargs for batch operations HOT 1
- go fmt go file warning HOT 1
- how to use force index when construct session HOT 2
- mysql5.7版本中json类型的数据插入空数组,数据为null
- how to open session autoclose flag with xorm.engine HOT 1
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 xorm.