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

xxx.schema.json配置全局表,全局表的物理数据库名称只能根据json文件名的xxx或者json中的顶层schemaName来吗 #793

Open
LALMore opened this issue Apr 27, 2023 · 0 comments

Comments

@LALMore
Copy link

LALMore commented Apr 27, 2023

xxx_schema.json配置文件的如下配置
{
"schemaName": "test",
"targetName": "prototype"
}
代表的是该schema在mycat中的逻辑库和实际数据源,单标配置可以单独配置自己的物理库和物理表
"normalTables": {
"role_edges": {
"createTableSQL":null,//可选
"locality": {
"schemaName": "mysql",//物理库,可选
"tableName": "role_edges",//物理表,可选
"targetName": "prototype"//指向集群,或者数据源
}
}
全局表就不行
"globalTables": {
"role_edges": {
"broadcast": [{"targetName": "c0"},{"targetName": "c1"}]
}
只能根据schemaName来,不灵活。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant