2025-02-02 23:13:17 +01:00
|
|
|
|
using System.Text.RegularExpressions;
|
|
|
|
|
|
|
2025-02-20 00:23:13 +01:00
|
|
|
|
namespace PlanTempus.Database.Common
|
2025-02-02 23:13:17 +01:00
|
|
|
|
{
|
|
|
|
|
|
internal class Validations
|
|
|
|
|
|
{
|
|
|
|
|
|
public static bool IsValidSchemaName(string schema)
|
|
|
|
|
|
{
|
|
|
|
|
|
return !string.IsNullOrEmpty(schema) && Regex.IsMatch(schema, "^[a-zA-Z0-9_]+$");
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|