提交 d76b8b6b authored 作者: Evgenij Ryazanov's avatar Evgenij Ryazanov

Add a couple of documentation links to ColumnNamerConfiguration

上级 909d9ce4
...@@ -195,7 +195,7 @@ public class ColumnNamerConfiguration { ...@@ -195,7 +195,7 @@ public class ColumnNamerConfiguration {
break; break;
case PostgreSQL: case PostgreSQL:
// this default can be changed to 128 by postgres config // https://www.postgresql.org/docs/current/static/sql-syntax-lexical.html
setMaxIdentiferLength(63); setMaxIdentiferLength(63);
setRegularExpressionMatchAllowed("(?m)(?s)[A-Za-z0-9_\\$]+"); setRegularExpressionMatchAllowed("(?m)(?s)[A-Za-z0-9_\\$]+");
setRegularExpressionMatchDisallowed("(?m)(?s)[^A-Za-z0-9_\\$]"); setRegularExpressionMatchDisallowed("(?m)(?s)[^A-Za-z0-9_\\$]");
...@@ -204,7 +204,8 @@ public class ColumnNamerConfiguration { ...@@ -204,7 +204,8 @@ public class ColumnNamerConfiguration {
break; break;
case MySQL: case MySQL:
// https://dev.mysql.com/doc/refman/5.7/en/identifiers.html // https://dev.mysql.com/doc/refman/8.0/en/identifiers.html
// https://mariadb.com/kb/en/library/identifier-names/
setMaxIdentiferLength(64); setMaxIdentiferLength(64);
setRegularExpressionMatchAllowed("(?m)(?s)`?[A-Za-z0-9_`\\$]+`?"); setRegularExpressionMatchAllowed("(?m)(?s)`?[A-Za-z0-9_`\\$]+`?");
setRegularExpressionMatchDisallowed("(?m)(?s)[^A-Za-z0-9_`\\$]"); setRegularExpressionMatchDisallowed("(?m)(?s)[^A-Za-z0-9_`\\$]");
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论