/// <summary>
 /// Constructs a new <see cref="SqliteRelationalDatabase"/>.
 /// </summary>
 /// <param name="connection">The connection to a SQLite database.</param>
 /// <param name="identifierDefaults">Default values for identifier components.</param>
 /// <param name="connectionPragma">Default values for identifier components.</param>
 /// <exception cref="ArgumentNullException">Thrown when <paramref name="connection"/>, or <paramref name="identifierDefaults"/>, or <paramref name="connectionPragma"/> are <code>null</code>.</exception>
 public SqliteRelationalDatabase(ISchematicConnection connection, IIdentifierDefaults identifierDefaults, ISqliteConnectionPragma connectionPragma)
 {
     Connection         = connection ?? throw new ArgumentNullException(nameof(connection));
     IdentifierDefaults = identifierDefaults ?? throw new ArgumentNullException(nameof(identifierDefaults));
     _tableProvider     = new SqliteRelationalDatabaseTableProvider(connection, connectionPragma, identifierDefaults);
     _viewProvider      = new SqliteDatabaseViewProvider(connection, connectionPragma, identifierDefaults);
 }
Ejemplo n.º 2
0
        public TableRenderer(
            IIdentifierDefaults identifierDefaults,
            IHtmlFormatter formatter,
            IReadOnlyCollection <IRelationalDatabaseTable> tables,
            IReadOnlyDictionary <Identifier, ulong> rowCounts,
            DirectoryInfo exportDirectory
            )
        {
            if (tables == null || tables.AnyNull())
            {
                throw new ArgumentNullException(nameof(tables));
            }

            Tables = tables;

            IdentifierDefaults = identifierDefaults ?? throw new ArgumentNullException(nameof(identifierDefaults));
            Formatter          = formatter ?? throw new ArgumentNullException(nameof(formatter));
            RowCounts          = rowCounts ?? throw new ArgumentNullException(nameof(rowCounts));

            if (exportDirectory == null)
            {
                throw new ArgumentNullException(nameof(exportDirectory));
            }

            ExportDirectory = new DirectoryInfo(Path.Combine(exportDirectory.FullName, "tables"));
        }
Ejemplo n.º 3
0
        public ViewRenderer(
            IIdentifierDefaults identifierDefaults,
            IHtmlFormatter formatter,
            IReadOnlyCollection <IDatabaseView> views,
            ReferencedObjectTargets referencedObjectTargets,
            DirectoryInfo exportDirectory
            )
        {
            if (views == null || views.AnyNull())
            {
                throw new ArgumentNullException(nameof(views));
            }

            Views = views;

            IdentifierDefaults      = identifierDefaults ?? throw new ArgumentNullException(nameof(identifierDefaults));
            Formatter               = formatter ?? throw new ArgumentNullException(nameof(formatter));
            ReferencedObjectTargets = referencedObjectTargets ?? throw new ArgumentNullException(nameof(referencedObjectTargets));

            if (exportDirectory == null)
            {
                throw new ArgumentNullException(nameof(exportDirectory));
            }

            ExportDirectory = new DirectoryInfo(Path.Combine(exportDirectory.FullName, "views"));
        }
        /// <summary>
        /// Initializes a new instance of the <see cref="PostgreSqlDatabaseSequenceProvider"/> class.
        /// </summary>
        /// <param name="connection">A schematic connection.</param>
        /// <param name="identifierDefaults">Database identifier defaults.</param>
        /// <param name="identifierResolver">An identifier resolver.</param>
        /// <exception cref="ArgumentNullException"><paramref name="connection"/> or <paramref name="identifierDefaults"/> or <paramref name="identifierResolver"/> are <c>null</c>.</exception>
        public PostgreSqlDatabaseSequenceProvider(ISchematicConnection connection, IIdentifierDefaults identifierDefaults, IIdentifierResolutionStrategy identifierResolver)
        {
            Connection         = connection ?? throw new ArgumentNullException(nameof(connection));
            IdentifierDefaults = identifierDefaults ?? throw new ArgumentNullException(nameof(identifierDefaults));
            IdentifierResolver = identifierResolver ?? throw new ArgumentNullException(nameof(identifierResolver));

            _sequenceProvider = new AsyncLazy <Option <IDatabaseSequenceProvider> >(LoadVersionedSequenceProvider);
        }
        /// <summary>
        /// Initializes a new instance of the <see cref="PostgreSqlRelationalDatabase"/> class.
        /// </summary>
        /// <param name="connection">A schematic connection.</param>
        /// <param name="identifierDefaults">Database identifier defaults.</param>
        /// <param name="identifierResolver">An identifier resolver.</param>
        /// <exception cref="ArgumentNullException"><paramref name="connection"/> or <paramref name="identifierDefaults"/> or <paramref name="identifierResolver"/> are <c>null</c>.</exception>
        public PostgreSqlRelationalDatabase(ISchematicConnection connection, IIdentifierDefaults identifierDefaults, IIdentifierResolutionStrategy identifierResolver)
        {
            IdentifierDefaults = identifierDefaults ?? throw new ArgumentNullException(nameof(identifierDefaults));

            _tableProvider    = new PostgreSqlRelationalDatabaseTableProvider(connection, identifierDefaults, identifierResolver);
            _viewProvider     = new PostgreSqlDatabaseViewProvider(connection, identifierDefaults, identifierResolver);
            _sequenceProvider = new PostgreSqlDatabaseSequenceProvider(connection, identifierDefaults, identifierResolver);
            _routineProvider  = new PostgreSqlDatabaseRoutineProvider(connection.DbConnection, identifierDefaults, identifierResolver);
        }
Ejemplo n.º 6
0
 public TableModelMapper(
     IIdentifierDefaults identifierDefaults,
     IReadOnlyDictionary <Identifier, ulong> rowCounts,
     RelationshipFinder relationship
     )
 {
     IdentifierDefaults = identifierDefaults ?? throw new ArgumentNullException(nameof(identifierDefaults));
     RowCounts          = rowCounts ?? throw new ArgumentNullException(nameof(rowCounts));
     RelationshipFinder = relationship ?? throw new ArgumentNullException(nameof(relationship));
 }
Ejemplo n.º 7
0
        /// <summary>
        /// Initializes a new instance of the <see cref="MySqlRelationalDatabase"/> class.
        /// </summary>
        /// <param name="connection">A database connection.</param>
        /// <param name="identifierDefaults">Identifier defaults for the associated database.</param>
        /// <exception cref="ArgumentNullException"><paramref name="connection"/> is <c>null</c> or <paramref name="identifierDefaults"/> is <c>null</c>.</exception>
        public MySqlRelationalDatabase(ISchematicConnection connection, IIdentifierDefaults identifierDefaults)
        {
            if (connection == null)
            {
                throw new ArgumentNullException(nameof(connection));
            }

            IdentifierDefaults = identifierDefaults ?? throw new ArgumentNullException(nameof(identifierDefaults));

            _tableProvider   = new MySqlRelationalDatabaseTableProvider(connection, identifierDefaults);
            _viewProvider    = new MySqlDatabaseViewProvider(connection, identifierDefaults);
            _routineProvider = new MySqlDatabaseRoutineProvider(connection, identifierDefaults);
        }
Ejemplo n.º 8
0
 public RelationshipsRenderer(
     IIdentifierDefaults identifierDefaults,
     IHtmlFormatter formatter,
     IEnumerable <IRelationalDatabaseTable> tables,
     IReadOnlyDictionary <Identifier, ulong> rowCounts,
     DirectoryInfo exportDirectory)
 {
     IdentifierDefaults = identifierDefaults ?? throw new ArgumentNullException(nameof(identifierDefaults));
     Formatter          = formatter ?? throw new ArgumentNullException(nameof(formatter));
     Tables             = tables ?? throw new ArgumentNullException(nameof(tables));
     RowCounts          = rowCounts ?? throw new ArgumentNullException(nameof(rowCounts));
     ExportDirectory    = exportDirectory ?? throw new ArgumentNullException(nameof(exportDirectory));
 }
Ejemplo n.º 9
0
        /// <summary>
        /// Initializes a new instance of the <see cref="MySqlDatabaseCommentProvider"/> class.
        /// </summary>
        /// <param name="connection">A database connection.</param>
        /// <param name="identifierDefaults">Identifier defaults for the associated database.</param>
        /// <exception cref="ArgumentNullException"><paramref name="connection"/> or <paramref name="identifierDefaults"/> is <c>null</c>.</exception>
        public MySqlDatabaseCommentProvider(IDbConnectionFactory connection, IIdentifierDefaults identifierDefaults)
        {
            if (connection == null)
            {
                throw new ArgumentNullException(nameof(connection));
            }
            if (identifierDefaults == null)
            {
                throw new ArgumentNullException(nameof(identifierDefaults));
            }

            _tableCommentProvider   = new MySqlTableCommentProvider(connection, identifierDefaults);
            _routineCommentProvider = new MySqlRoutineCommentProvider(connection, identifierDefaults);
        }
        /// <summary>
        /// Initializes a new instance of the <see cref="SqlServerRelationalDatabase"/> class.
        /// </summary>
        /// <param name="connection">A schematic connection.</param>
        /// <param name="identifierDefaults">Database identifier defaults.</param>
        /// <exception cref="ArgumentNullException"><paramref name="connection"/> or <paramref name="identifierDefaults"/> are <c>null</c>.</exception>
        public SqlServerRelationalDatabase(ISchematicConnection connection, IIdentifierDefaults identifierDefaults)
        {
            if (connection == null)
            {
                throw new ArgumentNullException(nameof(connection));
            }

            IdentifierDefaults = identifierDefaults ?? throw new ArgumentNullException(nameof(identifierDefaults));

            _tableProvider    = new SqlServerRelationalDatabaseTableProvider(connection, identifierDefaults);
            _viewProvider     = new SqlServerDatabaseViewProvider(connection, identifierDefaults);
            _sequenceProvider = new SqlServerDatabaseSequenceProvider(connection.DbConnection, identifierDefaults);
            _synonymProvider  = new SqlServerDatabaseSynonymProvider(connection.DbConnection, identifierDefaults);
            _routineProvider  = new SqlServerDatabaseRoutineProvider(connection.DbConnection, identifierDefaults);
        }
Ejemplo n.º 11
0
        public TriggersRenderer(
            IIdentifierDefaults identifierDefaults,
            IHtmlFormatter formatter,
            IReadOnlyCollection <IRelationalDatabaseTable> tables,
            DirectoryInfo exportDirectory)
        {
            if (tables == null || tables.AnyNull())
            {
                throw new ArgumentNullException(nameof(tables));
            }

            Tables = tables;

            IdentifierDefaults = identifierDefaults ?? throw new ArgumentNullException(nameof(identifierDefaults));
            Formatter          = formatter ?? throw new ArgumentNullException(nameof(formatter));
            ExportDirectory    = exportDirectory ?? throw new ArgumentNullException(nameof(exportDirectory));
        }
Ejemplo n.º 12
0
        public RoutinesRenderer(
            IIdentifierDefaults identifierDefaults,
            IHtmlFormatter formatter,
            IReadOnlyCollection <IDatabaseRoutine> routines,
            DirectoryInfo exportDirectory)
        {
            if (routines == null || routines.AnyNull())
            {
                throw new ArgumentNullException(nameof(routines));
            }

            Routines = routines;

            IdentifierDefaults = identifierDefaults ?? throw new ArgumentNullException(nameof(identifierDefaults));
            Formatter          = formatter ?? throw new ArgumentNullException(nameof(formatter));
            ExportDirectory    = exportDirectory ?? throw new ArgumentNullException(nameof(exportDirectory));
        }
Ejemplo n.º 13
0
        /// <summary>
        /// Initializes a new instance of the <see cref="SqlServerDatabaseCommentProvider"/> class.
        /// </summary>
        /// <param name="connection">A database connection.</param>
        /// <param name="identifierDefaults">Identifier defaults for the associated database.</param>
        /// <exception cref="ArgumentNullException"><paramref name="connection"/> or <paramref name="identifierDefaults"/> is <c>null</c>.</exception>
        public SqlServerDatabaseCommentProvider(IDbConnectionFactory connection, IIdentifierDefaults identifierDefaults)
        {
            if (connection == null)
            {
                throw new ArgumentNullException(nameof(connection));
            }
            if (identifierDefaults == null)
            {
                throw new ArgumentNullException(nameof(identifierDefaults));
            }

            _tableCommentProvider    = new SqlServerTableCommentProvider(connection, identifierDefaults);
            _viewCommentProvider     = new SqlServerViewCommentProvider(connection, identifierDefaults);
            _sequenceCommentProvider = new SqlServerSequenceCommentProvider(connection, identifierDefaults);
            _synonymCommentProvider  = new SqlServerSynonymCommentProvider(connection, identifierDefaults);
            _routineCommentProvider  = new SqlServerRoutineCommentProvider(connection, identifierDefaults);
        }
Ejemplo n.º 14
0
        public ViewsRenderer(
            IIdentifierDefaults identifierDefaults,
            IHtmlFormatter formatter,
            IReadOnlyCollection <IDatabaseView> views,
            DirectoryInfo exportDirectory)
        {
            if (views == null || views.AnyNull())
            {
                throw new ArgumentNullException(nameof(views));
            }

            Views = views;

            IdentifierDefaults = identifierDefaults ?? throw new ArgumentNullException(nameof(identifierDefaults));
            Formatter          = formatter ?? throw new ArgumentNullException(nameof(formatter));
            ExportDirectory    = exportDirectory ?? throw new ArgumentNullException(nameof(exportDirectory));
        }
Ejemplo n.º 15
0
        /// <summary>
        /// Initializes a new instance of the <see cref="OracleDatabaseRoutineProvider"/> class.
        /// </summary>
        /// <param name="connection">A database connection factory.</param>
        /// <param name="identifierDefaults">Database identifier defaults.</param>
        /// <param name="identifierResolver">An identifier resolver.</param>
        /// <exception cref="ArgumentNullException"><paramref name="connection"/> or <paramref name="identifierDefaults"/> or <paramref name="identifierResolver"/> are <c>null</c>.</exception>
        public OracleDatabaseRoutineProvider(IDbConnectionFactory connection, IIdentifierDefaults identifierDefaults, IIdentifierResolutionStrategy identifierResolver)
        {
            if (connection == null)
            {
                throw new ArgumentNullException(nameof(connection));
            }
            if (identifierDefaults == null)
            {
                throw new ArgumentNullException(nameof(identifierDefaults));
            }
            if (identifierResolver == null)
            {
                throw new ArgumentNullException(nameof(identifierResolver));
            }

            SimpleRoutineProvider = new OracleDatabaseSimpleRoutineProvider(connection, identifierDefaults, identifierResolver);
            PackageProvider       = new OracleDatabasePackageProvider(connection, identifierDefaults, identifierResolver);
        }
Ejemplo n.º 16
0
 /// <summary>
 /// Initializes a new instance of the <see cref="RelationalDatabase"/> class.
 /// </summary>
 /// <param name="identifierDefaults">Database identifier defaults.</param>
 /// <param name="identifierResolver">An identifier resolver to use when an object cannot be found using the given name.</param>
 /// <param name="tables">A collection of database tables.</param>
 /// <param name="views">A collection of database views.</param>
 /// <param name="sequences">A collection of database sequences.</param>
 /// <param name="synonyms">A collection of database synonyms.</param>
 /// <param name="routines">A collection of database routines.</param>
 /// <exception cref="ArgumentNullException"><paramref name="identifierDefaults"/> or <paramref name="identifierResolver"/> is <c>null</c>.</exception>
 public RelationalDatabase(
     IIdentifierDefaults identifierDefaults,
     IIdentifierResolutionStrategy identifierResolver,
     IEnumerable <IRelationalDatabaseTable> tables,
     IEnumerable <IDatabaseView> views,
     IEnumerable <IDatabaseSequence> sequences,
     IEnumerable <IDatabaseSynonym> synonyms,
     IEnumerable <IDatabaseRoutine> routines
     )
 {
     IdentifierDefaults = identifierDefaults ?? throw new ArgumentNullException(nameof(identifierDefaults));
     IdentifierResolver = identifierResolver ?? throw new ArgumentNullException(nameof(identifierResolver));
     Tables             = tables?.ToList() ?? throw new ArgumentNullException(nameof(tables));
     Views     = views?.ToList() ?? throw new ArgumentNullException(nameof(views));
     Sequences = sequences?.ToList() ?? throw new ArgumentNullException(nameof(sequences));
     Synonyms  = synonyms?.ToList() ?? throw new ArgumentNullException(nameof(synonyms));
     Routines  = routines?.ToList() ?? throw new ArgumentNullException(nameof(routines));
 }
Ejemplo n.º 17
0
        public SynonymsRenderer(
            IIdentifierDefaults identifierDefaults,
            IHtmlFormatter formatter,
            IReadOnlyCollection <IDatabaseSynonym> synonyms,
            SynonymTargets synonymTargets,
            DirectoryInfo exportDirectory)
        {
            if (synonyms == null || synonyms.AnyNull())
            {
                throw new ArgumentNullException(nameof(synonyms));
            }

            Synonyms           = synonyms;
            IdentifierDefaults = identifierDefaults ?? throw new ArgumentNullException(nameof(identifierDefaults));
            Formatter          = formatter ?? throw new ArgumentNullException(nameof(formatter));
            SynonymTargets     = synonymTargets ?? throw new ArgumentNullException(nameof(synonymTargets));
            ExportDirectory    = exportDirectory ?? throw new ArgumentNullException(nameof(exportDirectory));
        }
        /// <summary>
        /// Initializes a new instance of the <see cref="OracleDatabaseCommentProvider"/> class.
        /// </summary>
        /// <param name="connection">A database connection.</param>
        /// <param name="identifierDefaults">Identifier defaults for the associated database.</param>
        /// <param name="identifierResolver">An identifier resolver.</param>
        /// <exception cref="ArgumentNullException"><paramref name="connection"/> or <paramref name="identifierDefaults"/> or <paramref name="identifierResolver"/> is <c>null</c>.</exception>
        public OracleDatabaseCommentProvider(IDbConnectionFactory connection, IIdentifierDefaults identifierDefaults, IIdentifierResolutionStrategy identifierResolver)
        {
            if (connection == null)
            {
                throw new ArgumentNullException(nameof(connection));
            }
            if (identifierDefaults == null)
            {
                throw new ArgumentNullException(nameof(identifierDefaults));
            }
            if (identifierResolver == null)
            {
                throw new ArgumentNullException(nameof(identifierResolver));
            }

            _tableCommentProvider = new OracleTableCommentProvider(connection, identifierDefaults, identifierResolver);
            _viewCommentProvider  = new OracleViewCommentProvider(connection, identifierDefaults, identifierResolver);
        }
        /// <summary>
        /// Initializes a new instance of the <see cref="PostgreSqlViewCommentProvider"/> class.
        /// </summary>
        /// <param name="connection">A database connection factory.</param>
        /// <param name="identifierDefaults">Database identifier defaults.</param>
        /// <param name="identifierResolver">An identifier resolver.</param>
        /// <exception cref="ArgumentNullException"><paramref name="connection"/> or <paramref name="identifierDefaults"/> or <paramref name="identifierResolver"/> are <c>null</c>.</exception>
        public PostgreSqlViewCommentProvider(IDbConnectionFactory connection, IIdentifierDefaults identifierDefaults, IIdentifierResolutionStrategy identifierResolver)
        {
            if (connection == null)
            {
                throw new ArgumentNullException(nameof(connection));
            }
            if (identifierDefaults == null)
            {
                throw new ArgumentNullException(nameof(identifierDefaults));
            }
            if (identifierResolver == null)
            {
                throw new ArgumentNullException(nameof(identifierResolver));
            }

            QueryViewCommentProvider        = new PostgreSqlQueryViewCommentProvider(connection, identifierDefaults, identifierResolver);
            MaterializedViewCommentProvider = new PostgreSqlMaterializedViewCommentProvider(connection, identifierDefaults, identifierResolver);
        }
Ejemplo n.º 20
0
        /// <summary>
        /// Initializes a new instance of the <see cref="OracleDatabaseViewProvider"/> class.
        /// </summary>
        /// <param name="connection">A schematic connection.</param>
        /// <param name="identifierDefaults">Database identifier defaults.</param>
        /// <param name="identifierResolver">An identifier resolver.</param>
        /// <exception cref="ArgumentNullException"><paramref name="connection"/> or <paramref name="identifierDefaults"/> or <paramref name="identifierResolver"/> are <c>null</c>.</exception>
        public OracleDatabaseViewProvider(ISchematicConnection connection, IIdentifierDefaults identifierDefaults, IIdentifierResolutionStrategy identifierResolver)
        {
            if (connection == null)
            {
                throw new ArgumentNullException(nameof(connection));
            }
            if (identifierDefaults == null)
            {
                throw new ArgumentNullException(nameof(identifierDefaults));
            }
            if (identifierResolver == null)
            {
                throw new ArgumentNullException(nameof(identifierResolver));
            }

            QueryViewProvider        = new OracleDatabaseQueryViewProvider(connection, identifierDefaults, identifierResolver);
            MaterializedViewProvider = new OracleDatabaseMaterializedViewProvider(connection, identifierDefaults, identifierResolver);
        }
Ejemplo n.º 21
0
        public LintRenderer(
            IRelationalDatabaseLinter linter,
            IIdentifierDefaults identifierDefaults,
            IHtmlFormatter formatter,
            IReadOnlyCollection <IRelationalDatabaseTable> tables,
            IReadOnlyCollection <IDatabaseView> views,
            IReadOnlyCollection <IDatabaseSequence> sequences,
            IReadOnlyCollection <IDatabaseSynonym> synonyms,
            IReadOnlyCollection <IDatabaseRoutine> routines,
            DirectoryInfo exportDirectory
            )
        {
            if (tables == null || tables.AnyNull())
            {
                throw new ArgumentNullException(nameof(tables));
            }
            if (views == null || views.AnyNull())
            {
                throw new ArgumentNullException(nameof(views));
            }
            if (sequences == null || sequences.AnyNull())
            {
                throw new ArgumentNullException(nameof(sequences));
            }
            if (synonyms == null || synonyms.AnyNull())
            {
                throw new ArgumentNullException(nameof(synonyms));
            }
            if (routines == null || routines.AnyNull())
            {
                throw new ArgumentNullException(nameof(routines));
            }

            Tables    = tables;
            Views     = views;
            Sequences = sequences;
            Synonyms  = synonyms;
            Routines  = routines;

            Linter             = linter ?? throw new ArgumentNullException(nameof(linter));
            IdentifierDefaults = identifierDefaults ?? throw new ArgumentNullException(nameof(identifierDefaults));
            Formatter          = formatter ?? throw new ArgumentNullException(nameof(formatter));
            ExportDirectory    = exportDirectory ?? throw new ArgumentNullException(nameof(exportDirectory));
        }
        /// <summary>
        /// Initializes a new instance of the <see cref="PostgreSqlDatabaseCommentProvider"/> class.
        /// </summary>
        /// <param name="connection">A database connection factory.</param>
        /// <param name="identifierDefaults">Database identifier defaults.</param>
        /// <param name="identifierResolver">An identifier resolver.</param>
        /// <exception cref="ArgumentNullException"><paramref name="connection"/> or <paramref name="identifierDefaults"/> or <paramref name="identifierResolver"/> are <c>null</c>.</exception>
        public PostgreSqlDatabaseCommentProvider(IDbConnectionFactory connection, IIdentifierDefaults identifierDefaults, IIdentifierResolutionStrategy identifierResolver)
        {
            if (connection == null)
            {
                throw new ArgumentNullException(nameof(connection));
            }
            if (identifierDefaults == null)
            {
                throw new ArgumentNullException(nameof(identifierDefaults));
            }
            if (identifierResolver == null)
            {
                throw new ArgumentNullException(nameof(identifierResolver));
            }

            _tableCommentProvider    = new PostgreSqlTableCommentProvider(connection, identifierDefaults, identifierResolver);
            _viewCommentProvider     = new PostgreSqlViewCommentProvider(connection, identifierDefaults, identifierResolver);
            _sequenceCommentProvider = new PostgreSqlSequenceCommentProvider(connection, identifierDefaults, identifierResolver);
            _routineCommentProvider  = new PostgreSqlRoutineCommentProvider(connection, identifierDefaults, identifierResolver);
        }
Ejemplo n.º 23
0
        public SequenceRenderer(
            IIdentifierDefaults identifierDefaults,
            IHtmlFormatter formatter,
            IReadOnlyCollection <IDatabaseSequence> sequences,
            DirectoryInfo exportDirectory
            )
        {
            if (sequences == null || sequences.AnyNull())
            {
                throw new ArgumentNullException(nameof(sequences));
            }

            Sequences = sequences;

            IdentifierDefaults = identifierDefaults ?? throw new ArgumentNullException(nameof(identifierDefaults));
            Formatter          = formatter ?? throw new ArgumentNullException(nameof(formatter));

            if (exportDirectory == null)
            {
                throw new ArgumentNullException(nameof(exportDirectory));
            }

            ExportDirectory = new DirectoryInfo(Path.Combine(exportDirectory.FullName, "sequences"));
        }
Ejemplo n.º 24
0
 /// <summary>
 /// Initializes a new instance of the <see cref="DotFormatter"/> class.
 /// </summary>
 /// <param name="identifierDefaults">The identifier defaults, used when any components of identifiers are missing.</param>
 /// <exception cref="ArgumentNullException"><paramref name="identifierDefaults"/></exception>
 public DotFormatter(IIdentifierDefaults identifierDefaults)
 {
     IdentifierDefaults = identifierDefaults ?? throw new ArgumentNullException(nameof(identifierDefaults));
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="MySqlDatabaseRoutineProvider"/> class.
 /// </summary>
 /// <param name="connection">A database connection.</param>
 /// <param name="identifierDefaults">Identifier defaults for the associated database.</param>
 /// <exception cref="ArgumentNullException"><paramref name="connection"/> or <paramref name="identifierDefaults"/> are <c>null</c>.</exception>
 public MySqlDatabaseRoutineProvider(ISchematicConnection connection, IIdentifierDefaults identifierDefaults)
 {
     Connection         = connection ?? throw new ArgumentNullException(nameof(connection));
     IdentifierDefaults = identifierDefaults ?? throw new ArgumentNullException(nameof(identifierDefaults));
 }
Ejemplo n.º 26
0
 /// <summary>
 /// Initializes a new instance of the <see cref="PostgreSqlRelationalDatabaseTableProvider"/> class.
 /// </summary>
 /// <param name="connection">A schematic connection.</param>
 /// <param name="identifierDefaults">Database identifier defaults.</param>
 /// <param name="identifierResolver">A database identifier resolver.</param>
 /// <exception cref="ArgumentNullException"><paramref name="connection"/> or <paramref name="identifierDefaults"/> or <paramref name="identifierResolver"/> is <c>null</c>.</exception>
 public PostgreSqlRelationalDatabaseTableProvider(ISchematicConnection connection, IIdentifierDefaults identifierDefaults, IIdentifierResolutionStrategy identifierResolver)
     : base(connection, identifierDefaults, identifierResolver)
 {
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="SqlServerDatabaseCommentProvider"/> class.
 /// </summary>
 /// <param name="connection">A database connection.</param>
 /// <param name="identifierDefaults">Identifier defaults for the associated database.</param>
 /// <exception cref="ArgumentNullException"><paramref name="connection"/> or <paramref name="identifierDefaults"/> is <c>null</c>.</exception>
 public SqlServerRoutineCommentProvider(IDbConnectionFactory connection, IIdentifierDefaults identifierDefaults)
 {
     Connection         = connection ?? throw new ArgumentNullException(nameof(connection));
     IdentifierDefaults = identifierDefaults ?? throw new ArgumentNullException(nameof(identifierDefaults));
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="PostgreSqlDatabaseSequenceProvider"/> class.
 /// </summary>
 /// <param name="connection">A database connection factory.</param>
 /// <param name="identifierDefaults">Database identifier defaults.</param>
 /// <param name="identifierResolver">An identifier resolver.</param>
 public PostgreSqlDatabaseSequenceProvider(IDbConnectionFactory connection, IIdentifierDefaults identifierDefaults, IIdentifierResolutionStrategy identifierResolver)
     : base(connection, identifierDefaults, identifierResolver)
 {
 }
Ejemplo n.º 29
0
 /// <summary>
 /// Initializes a new instance of the <see cref="PostgreSqlSequenceCommentProvider"/> class.
 /// </summary>
 /// <param name="connection">A database connection factory.</param>
 /// <param name="identifierDefaults">Database identifier defaults.</param>
 /// <param name="identifierResolver">An identifier resolver.</param>
 /// <exception cref="ArgumentNullException"><paramref name="connection"/> or <paramref name="identifierDefaults"/> or <paramref name="identifierResolver"/> are <c>null</c>.</exception>
 public PostgreSqlSequenceCommentProvider(IDbConnectionFactory connection, IIdentifierDefaults identifierDefaults, IIdentifierResolutionStrategy identifierResolver)
 {
     Connection         = connection ?? throw new ArgumentNullException(nameof(connection));
     IdentifierDefaults = identifierDefaults ?? throw new ArgumentNullException(nameof(identifierDefaults));
     IdentifierResolver = identifierResolver ?? throw new ArgumentNullException(nameof(identifierResolver));
 }
Ejemplo n.º 30
0
 /// <summary>
 /// Initializes a new instance of the <see cref="OracleMaterializedViewCommentProvider"/> class.
 /// </summary>
 /// <param name="connection">A database connection factory.</param>
 /// <param name="identifierDefaults">Database identifier defaults.</param>
 /// <param name="identifierResolver">An identifier resolver.</param>
 /// <exception cref="ArgumentNullException"><paramref name="connection"/> or <paramref name="identifierDefaults"/> or <paramref name="identifierResolver"/> are <c>null</c>.</exception>
 public OracleMaterializedViewCommentProvider(IDbConnectionFactory connection, IIdentifierDefaults identifierDefaults, IIdentifierResolutionStrategy identifierResolver)
 {
     Connection         = connection ?? throw new ArgumentNullException(nameof(connection));
     IdentifierDefaults = identifierDefaults ?? throw new ArgumentNullException(nameof(identifierDefaults));
     IdentifierResolver = identifierResolver ?? throw new ArgumentNullException(nameof(identifierResolver));
 }