コード例 #1
0
 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));
     }
 }
コード例 #2
0
        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);
        }
コード例 #3
0
 protected QsiQualifiedIdentifier CreateIdentifier(params string[] path)
 {
     return(new(path.Select(p => new QsiIdentifier(p, IdentifierUtility.IsEscaped(p)))));
 }