Skip to content

Delimiters Class ​

Definition ​

Provides methods for formatting database object names using specified delimiters.

  • Namespace: JASE.Database
  • Assembly: JASE.Database.dll

Properties ​

NameDescription
DatabaseTypeSpecifies the type of database being connected to
MaxIdentifierLengthGets the dialect maximum identifier length (UTF-8 bytes on PostgreSQL, characters on SQL Server).
ParameterPrefixGets the parameter identifier prefix used for formatting parameters.
PrefixGets the beginning delimiter used for formatting.
SeparatorSeparation character when formatting names
SuffixGets the ending delimiter used for formatting.

Methods ​

NameDescription
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.