LarryLiu

Results 4 comments of LarryLiu

> > > > i use custom driver to handle tenant 我也是,但是我认为有个全局的handle操作起来会更简单

@hibiken Hi,about the problem.I found that it is related to the redis option. when db>0 log print "discarding bad PubSub connection" db=0 ,password="" don't print. db=0 password="xxxx" log print "discarding...

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

而且翻了一下源码,感觉这个WithDB就像是一个无用的方法一样. ``` //这个判断好像永远也进不去 if ctxDb := DBFromCtx(dbCtx); ctxDb != nil { return dbCtx } ```