-
Notifications
You must be signed in to change notification settings - Fork 286
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
DM: support PCRE regexp syntax for routing #11635
Comments
I might mistake the repository to create issue |
I understood Golang regxp support RE2 syntax, not PCRE |
I understand there isn't lightweight safe proper library for Golang... |
You can use |
the actual wildcard syntax is schema-pattern: 'mercari_[!a]'
# or
schema-pattern: '~^mercari_[^a]' |
sorry My example was a bit wrong and I think I can't cope with existing RE2 syntax
following config do not work
|
It won't work because assertions Route-rules do not allow overlapping matches1, but if the "other" schemas are a finite set you could always do routes:
route_a:
schema-pattern: mercari_sample
target-schema: mercari
route_others:
schema-pattern: '~^mercari_(sample2|sample_hoge|asample|bsample|...etc...)$'
target-schema: mercari_others Footnotes
|
Is your feature request related to a problem?
I'd like to consolidate many schema by a simple route config.
Describe the feature you'd like
if there are databases for source like
following config do not work
Describe alternatives you've considered
No response
Teachability, Documentation, Adoption, Migration Strategy
No response
The text was updated successfully, but these errors were encountered: