gf icon indicating copy to clipboard operation
gf copied to clipboard

关于gdb的一些小想法

Open larryclean opened this issue 2 years ago • 2 comments

1.Handle 是否可以增加一个全局的Handle 2.model对象是不是可以增加GetTableName() string 如果增加的这些可以实现saas模式的开发

1. What version of Go and system type/arch are you using?

2. What version of GoFrame are you using?

3. Can this issue be re-produced with the latest release?

4. What did you do?

5. What did you expect to see?

6. What did you see instead?

larryclean avatar Aug 24 '22 04:08 larryclean

i use custom driver to handle tenant

FTLLOVE avatar Aug 25 '22 14:08 FTLLOVE

i use custom driver to handle tenant

我也是,但是我认为有个全局的handle操作起来会更简单

larryclean avatar Aug 25 '22 23:08 larryclean

@houseme @gqcn 不知道大佬们,是否可以提供一个思路实现多租户的几种模式。总感觉目前已经可以满足了。但是实现的时候却发现总是哪里少了点东西。 1.共享表也就是每张表增加一个tenant_id 2.共享数据库不同schema的方式 3.不同数据源的方式。

larryclean avatar Nov 08 '22 15:11 larryclean

image 而且翻了一下源码,感觉这个WithDB就像是一个无用的方法一样. ```

//这个判断好像永远也进不去 if ctxDb := DBFromCtx(dbCtx); ctxDb != nil { return dbCtx }

larryclean avatar Nov 08 '22 15:11 larryclean

@FTLLOVE @larryclean 多租户的查询的全局处理,有什么解决方案吗

lusson-luo avatar Jun 28 '23 12:06 lusson-luo

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


@FTLLOVE @larryclean Global processing of multi-tenant queries, is there any solution

Issues-translate-bot avatar Jun 28 '23 12:06 Issues-translate-bot

i use custom driver to handle tenant

可以更详细的描述一下,以及现有的想法或许想实现的目标 @larryclean @FTLLOVE

houseme avatar Jul 01 '23 10:07 houseme