Example #1
0
        public LikeClauseImpl(SQLVendorImpl vendor, TableNameDirect tableName)
            : base(vendor)
        {
            ArgumentValidator.ValidateNotNull(nameof(tableName), tableName);

            this._tableName = tableName;
        }
Example #2
0
        public TargetTableImpl(SQLVendorImpl vendor, TableNameDirect table, Boolean isOnly)
            : base(vendor)
        {
            ArgumentValidator.ValidateNotNull(nameof(table), table);

            this._table  = table;
            this._isOnly = isOnly;
        }
Example #3
0
        public DropTableOrViewStatementImpl(SQLVendorImpl vendor, DropBehaviour db, ObjectType whatToDrop, TableNameDirect table)
            : base(vendor, db)
        {
            ArgumentValidator.ValidateNotNull(nameof(table), table);

            this._whatToDrop = whatToDrop;
            this._tableName  = table;
        }
Example #4
0
        public AlterTableStatementImpl(SQLVendorImpl vendor, TableNameDirect tableName, AlterTableAction action)
            : base(vendor)
        {
            ArgumentValidator.ValidateNotNull(nameof(tableName), tableName);
            ArgumentValidator.ValidateNotNull(nameof(action), action);

            this._tableName = tableName;
            this._action    = action;
        }
Example #5
0
        public InsertStatementImpl(SQLVendorImpl vendor, TableNameDirect table, ColumnSource columnSource)
            : base(vendor)
        {
            ArgumentValidator.ValidateNotNull(nameof(table), table);
            ArgumentValidator.ValidateNotNull(nameof(columnSource), columnSource);

            this._table        = table;
            this._columnSource = columnSource;
        }
Example #6
0
        public TableDefinitionImpl(SQLVendorImpl vendor, TableCommitAction?commitAction, TableContentsSource contents, TableNameDirect name, TableScope?scope)
            : base(vendor)
        {
            ArgumentValidator.ValidateNotNull(nameof(name), name);
            ArgumentValidator.ValidateNotNull(nameof(contents), contents);

            this._commitAction = commitAction;
            this._contents     = contents;
            this._name         = name;
            this._scope        = scope;
        }
Example #7
0
        public ViewDefinitionImpl(SQLVendorImpl vendor, TableNameDirect name, QueryExpression query, ViewSpecification spec, ViewCheckOption?check, Boolean isRecursive)
            : base(vendor)
        {
            ArgumentValidator.ValidateNotNull(nameof(name), name);
            ArgumentValidator.ValidateNotNull(nameof(query), query);
            ArgumentValidator.ValidateNotNull(nameof(spec), spec);

            this._name        = name;
            this._query       = query;
            this._spec        = spec;
            this._viewCheck   = check;
            this._isRecursive = isRecursive;
        }
Example #8
0
        public ForeignKeyConstraintImpl(SQLVendorImpl vendor, ColumnNameList sourceColumns, TableNameDirect targetTable, ColumnNameList targetColumns, MatchType?matchType, ReferentialAction?onDelete, ReferentialAction?onUpdate)
            : base(vendor)
        {
            ArgumentValidator.ValidateNotNull(nameof(sourceColumns), sourceColumns);
            ArgumentValidator.ValidateNotNull(nameof(targetTable), targetTable);

            this._sourceColumns  = sourceColumns;
            this._targeTableName = targetTable;
            this._targetColumns  = targetColumns;
            this._matchType      = matchType;
            this._onDelete       = onDelete;
            this._onUpdate       = onUpdate;
        }
Example #9
0
 internal PgSQLDropTableOrViewStatementImpl(PostgreSQLVendorImpl vendor, DropBehaviour db, ObjectType whatToDrop, TableNameDirect table, Boolean useIfExists)
     : base(vendor, db, whatToDrop, table)
 {
     this._useIfExists = useIfExists;
 }
Example #10
0
 public virtual InsertStatement NewInsertStatement(TableNameDirect table, ColumnSource columnSource)
 {
     return(new InsertStatementImpl(this.vendor, table, columnSource));
 }
Example #11
0
 public virtual TargetTable NewTargetTable(TableNameDirect tableName, bool isOnly = false)
 {
     return(new TargetTableImpl(this.vendor, tableName, isOnly));
 }
Example #12
0
 public virtual DropTableOrViewStatement NewDropTableOrViewStatement(TableNameDirect tableName, ObjectType theType, DropBehaviour dropBehaviour)
 {
     return(new DropTableOrViewStatementImpl(this.vendor, dropBehaviour, theType, tableName));
 }
Example #13
0
 public static TableDefinition NewTableDefinitionPgSQL(this DefinitionFactory factory, TableNameDirect tableName, TableContentsSource contents, TableScope?tableScope = null, PgSQLTableCommitAction?commitAction = null)
 {
     return(factory.NewTableDefinition(tableName, contents, tableScope, (TableCommitAction)commitAction));
 }
Example #14
0
 public ForeignKeyConstraintBuilder SetTargetTableName(TableNameDirect tableName)
 {
     this._targetTable = tableName;
     return(this);
 }
Example #15
0
 public override DropTableOrViewStatement NewDropTableOrViewStatement(TableNameDirect tableName, ObjectType theType, DropBehaviour dropBehaviour)
 {
     return(((PostgreSQLVendor)this.vendor).PgSQLSpecificFactory.NewDropTableOrViewStatement(tableName, theType, dropBehaviour));
 }
Example #16
0
 public TableDefinitionBuilder SetTableName(TableNameDirect tableName)
 {
     this._tableName = tableName;
     return(this);
 }
Example #17
0
 public virtual LikeClause NewLikeClause(TableNameDirect tableName)
 {
     return(new LikeClauseImpl(this.vendor, tableName));
 }
Example #18
0
 public ViewDefinitionBuilder SetViewName(TableNameDirect viewName)
 {
     this._viewName = viewName;
     return(this);
 }
Example #19
0
 public InsertStatementBuilder SetTableName(TableNameDirect tableName)
 {
     this._table = tableName;
     return(this);
 }
Example #20
0
 internal PgSQLInsertStatementImpl(PostgreSQLVendorImpl vendor, TableNameDirect table, ColumnSource columnSource, SelectColumnClause returningClause)
     : base(vendor, table, columnSource)
 {
     this._returning = returningClause;
 }
Example #21
0
 public PgSQLDropTableOrViewStatement NewDropTableOrViewStatement(TableNameDirect tableName, ObjectType theType, DropBehaviour dropBehaviour, Boolean useIfExists = true)
 {
     return(new PgSQLDropTableOrViewStatementImpl((PostgreSQLVendorImpl)this.vendor, dropBehaviour, theType, tableName, useIfExists));
 }
Example #22
0
 public static TableReferenceByName AsReference(this TableNameDirect tableName, String alias, params String[] renamedColumns)
 {
     return(tableName.SQLVendor.QueryFactory.NewTableReferenceByName(tableName, tableName.SQLVendor.QueryFactory.NewTableAlias(alias, renamedColumns)));
 }
Example #23
0
 public PgSQLInsertStatement NewInsertStatement(TableNameDirect table, ColumnSource columnSource, SelectColumnClause returning = null)
 {
     return(new PgSQLInsertStatementImpl((PostgreSQLVendorImpl)this.vendor, table, columnSource, returning));
 }
Example #24
0
 public virtual ViewDefinition NewViewDefinition(TableNameDirect viewName, QueryExpression query, ViewSpecification viewSpec, ViewCheckOption?viewCheck = null, bool isRecursive = false)
 {
     return(new ViewDefinitionImpl(this.vendor, viewName, query, viewSpec, viewCheck, isRecursive));
 }
Example #25
0
 public override InsertStatement NewInsertStatement(TableNameDirect table, ColumnSource columnSource)
 {
     return(((PostgreSQLVendor)this.vendor).PgSQLSpecificFactory.NewInsertStatement(table, columnSource));
 }
Example #26
0
 public virtual AlterTableStatement NewAlterTableStatement(TableNameDirect tableName, AlterTableAction action)
 {
     return(new AlterTableStatementImpl(this.vendor, tableName, action));
 }
Example #27
0
 public virtual ForeignKeyConstraint NewForeignKeyConstraint(ImmutableArray <String> sourceColumns, TableNameDirect targetTable, ImmutableArray <String> targetColumns, MatchType?matchType = null, ReferentialAction?onUpdate = null, ReferentialAction?onDelete = null)
 {
     return(new ForeignKeyConstraintImpl(this.vendor, this.vendor.CommonFactory.ColumnNames(sourceColumns), targetTable, this.vendor.CommonFactory.ColumnNames(targetColumns), matchType, onDelete, onUpdate));
 }
Example #28
0
 protected override void DoProcess(SQLProcessorAggregator aggregator, TableNameDirect obj, StringBuilder builder)
 {
     // MySQL does not understand schema-qualified table names
     builder.Append(obj.TableName);
 }
Example #29
0
 public virtual TableDefinition NewTableDefinition(TableNameDirect tableName, TableContentsSource contents, TableScope?tableScope = null, TableCommitAction?commitAction = null)
 {
     return(new TableDefinitionImpl(this.vendor, commitAction, contents, tableName, tableScope));
 }
Example #30
0
 public static TableReferenceByName AsReference(this TableNameDirect tableName, TableAlias alias = null)
 {
     return(tableName.SQLVendor.QueryFactory.NewTableReferenceByName(tableName, alias));
 }