You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
486 B
21 lines
486 B
namespace Connected.Data.Schema.Sql
|
|
{
|
|
internal abstract class SynchronizationCommand
|
|
{
|
|
public static string Escape(string value)
|
|
{
|
|
return $"[{Unescape(value)}]";
|
|
}
|
|
|
|
public static string Unescape(string value)
|
|
{
|
|
return value.TrimStart('[').TrimEnd(']');
|
|
}
|
|
|
|
public static string Escape(string schema, string name)
|
|
{
|
|
return $"{Escape(schema)}.{Escape(name)}";
|
|
}
|
|
}
|
|
}
|