Class SchemaNameUtils
java.lang.Object
io.micronaut.data.runtime.multitenancy.internal.SchemaNameUtils
Utilities for safely rendering schema names in schema-switching SQL.
-
Method Summary
-
Method Details
-
render
Renders a schema name as a dialect-compatible SQL identifier.- Parameters:
dialect- The SQL dialectname- The logical schema name- Returns:
- The safely rendered identifier
- Throws:
IllegalArgumentException- If the name is null, empty, or contains a NUL character- See Also:
-
oracleCreateSchemaStatement
Builds the Oracle statement that creates a schema.- Parameters:
name- The logical schema name- Returns:
- The PL/SQL block creating the schema
- Throws:
IllegalArgumentException- If the name is null, empty, or contains a NUL character- See Also:
-