Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

多数据库支持 #264

Closed
kbengine opened this issue Nov 6, 2015 · 1 comment
Closed

多数据库支持 #264

kbengine opened this issue Nov 6, 2015 · 1 comment
Milestone

Comments

@kbengine
Copy link
Owner

kbengine commented Nov 6, 2015

No description provided.

@kbengine kbengine added this to the v0.9.x milestone Nov 6, 2015
@kbengine
Copy link
Owner Author

1: 配置中允许配多个数据库接口,每个接口可以定义一个名字
2:writeToDB或者executeRawDatabaseCommand的时候允许给一个数据库接口的名字,如果指定了名字则请求被交给对应名字的数据库接口处理,否则默认交给第一个数据库接口处理
3:利用这个机制开发者可以根据账号名等计算一个值,将请求扔到不同的数据库接口写入不同的数据库和不同的表中,executeRawDatabaseCommand也可以将不同的需求放到不同的数据库中处理,例如运营日志

@kbengine kbengine modified the milestones: 0.8.x, v0.9.x Nov 25, 2015
kbengine added a commit to kbengine/kbengine_demos_assets that referenced this issue Dec 2, 2015
kbengine/kbengine#264

1: 配置中允许配多个数据库接口,每个接口可以定义一个名字
2:writeToDB或者executeRawDatabaseCommand的时候允许给一个数据库接口的名字,如果指定了名字则请求被交给对应名字的数据库接口处理,否则默认交给第一个数据库接口处理
3:利用这个机制开发者可以根据账号名等计算一个值,将请求扔到不同的数据库接口写入不同的数据库和不同的表中,executeRawDatabaseCommand也可以将不同的需求放到不同的数据库中处理,例如运营日志
@kbengine kbengine closed this as completed Dec 2, 2015
kbengine added a commit that referenced this issue Dec 2, 2015
#264

1: 配置中允许配多个数据库接口,每个接口可以定义一个名字
2:writeToDB或者executeRawDatabaseCommand的时候允许给一个数据库接口的名字,如果指定了名字则请求被交给对应名字的数据库接口处理,否则默认交给第一个数据库接口处理
3:利用这个机制开发者可以根据账号名等计算一个值,将请求扔到不同的数据库接口写入不同的数据库和不同的表中,executeRawDatabaseCommand也可以将不同的需求放到不同的数据库中处理,例如运营日志
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant