protected void AddColumns(QsiTableStructure table, params string[] names) { foreach (var name in names) { var c = table.NewColumn(); c.Name = new QsiIdentifier(name, IdentifierUtility.IsEscaped(name)); } }
public static QsiChangeSearchPathActionNode VisitUseSchemaStatement(UseSchemaStatement context) { var schemaName = context.SchemaName; if (string.IsNullOrEmpty(schemaName)) { schemaName = "DEFAULT"; } var identifier = new QsiIdentifier(schemaName, IdentifierUtility.IsEscaped(schemaName)); var node = new QsiChangeSearchPathActionNode { Identifiers = new[] { identifier } }; PTree.RawNode[node] = context; return(node); }
protected QsiQualifiedIdentifier CreateIdentifier(params string[] path) { return(new(path.Select(p => new QsiIdentifier(p, IdentifierUtility.IsEscaped(p))))); }