TABLE_NAME_VALID_PATTERN

internal const val TABLE_NAME_VALID_PATTERN: String

A regular expression defining the valid pattern for SQL table names.

This pattern enforces that table names must:

  • Contain only Unicode letters, Unicode digits, or underscores.

  • Optionally be segmented by dots to indicate schema and table separation.

It ensures compatibility with most SQL database naming conventions, thus minimizing risks of invalid names or injection vulnerabilities.

Example of valid table names:

  • my_table

  • schema1.table2

Example of invalid table names:

  • my-table (contains a dash)

  • table!name (contains special characters)

  • .startWithDot (cannot start with a dot)