Appearance
Delimiters Class
Definition
Provides methods for formatting database object names using specified delimiters.
- Namespace:
JASE.Database - Assembly:
JASE.Database.dll
Properties
| Name | Description |
|---|---|
DatabaseType | Specifies the type of database being connected to |
MaxIdentifierLength | Gets the dialect maximum identifier length (UTF-8 bytes on PostgreSQL, characters on SQL Server). |
ParameterPrefix | Gets the parameter identifier prefix used for formatting parameters. |
Prefix | Gets the beginning delimiter used for formatting. |
Separator | Separation character when formatting names |
Suffix | Gets the ending delimiter used for formatting. |
Methods
| Name | Description |
|---|---|
void EnsureIdentifier(string name) | Throws if name would not fit in the dialect identifier limit. |
bool FitsIdentifier(string name) | Returns whether name would fit in the dialect identifier limit without truncation. |
string Format(IEnumerable<string> input, char separator = null) | Formats a collection of strings using the defined delimiters and a specified separator. |
string Format(string input) | Formats a string using the defined delimiters. |
string FormatParameter(int input) | Prefixes input with ParameterIdentifier |
string FormatParameter(string input) | Prefixes input with ParameterIdentifier |
string FormatSchemaTable(string schema, string table) | Formats schema and table names using delimiters and a separator. |
List<char> GetBeginEndList() | Gets a list containing the beginning and ending delimiters as characters. |
bool IsDelimited(string input) | Determines whether the input string is already delimited. |
string PhysicalIdentifier(string name) | Returns the identifier the server would store, truncating to the dialect limit if needed. Use only to match leftover truncated catalog names; never to emit DDL. |
string RemoveDelimiters(string input) | Removes the begin and end delimiters from the input string. |
string Wrap(string input) | Wraos a string using the defined prefix and suffix delimiters. |