Uses of Interface
org.pgcodekeeper.core.database.api.schema.IDatabase
Packages that use IDatabase
Package
Description
-
Uses of IDatabase in org.pgcodekeeper.core.api
Methods in org.pgcodekeeper.core.api with parameters of type IDatabaseModifier and TypeMethodDescriptionstatic StringPgCodeKeeperApi.diff(IDatabaseProvider provider, IDatabase oldDb, IDatabase newDb, DiffSettings diffSettings) Compares two databases and generates a migration script.static StringPgCodeKeeperApi.diff(IDatabaseProvider provider, IDatabase oldDb, IDatabase newDb, DiffSettings diffSettings, TreeElement root) Compares two databases and generates a migration script with a pre-built tree.static voidPgCodeKeeperApi.exportToProject(IDatabaseProvider provider, IDatabase oldDb, IDatabase newDb, List<TreeElement> selected, Path projectPath, boolean overridesOnly, ISettings settings) Exports or updates project or overrides files based on selected elements. -
Uses of IDatabase in org.pgcodekeeper.core.database.api
Methods in org.pgcodekeeper.core.database.api that return IDatabaseMethods in org.pgcodekeeper.core.database.api with parameters of type IDatabaseModifier and TypeMethodDescriptionIDatabaseProvider.getModelExporter(Path outDir, IDatabase newDb, Collection<TreeElement> changedObjects, ISettings settings) IDatabaseProvider.getProjectUpdater(IDatabase newDb, IDatabase oldDb, Collection<TreeElement> changedObjects, Path projectPath, boolean overridesOnly, ISettings settings) default IProjectUpdaterIDatabaseProvider.getProjectUpdater(IDatabase newDb, IDatabase oldDb, Collection<TreeElement> changedObjects, Path projectPath, ISettings settings) -
Uses of IDatabase in org.pgcodekeeper.core.database.api.launcher
Methods in org.pgcodekeeper.core.database.api.launcher with parameters of type IDatabase -
Uses of IDatabase in org.pgcodekeeper.core.database.api.loader
Methods in org.pgcodekeeper.core.database.api.loader that return IDatabaseModifier and TypeMethodDescriptionILoader.getDatabase()ILoader.load()Loads the database schema.ILoader.loadAndAnalyze()Loads the database schema and runs full expression analysis. -
Uses of IDatabase in org.pgcodekeeper.core.database.api.schema
Methods in org.pgcodekeeper.core.database.api.schema that return IDatabaseModifier and TypeMethodDescriptiondefault IDatabaseIDatabase.getDatabase()default IDatabaseISearchPath.getDatabase()Gets the database that contains this object.default IDatabaseIStatement.getDatabase()Gets the database that contains this statement.Methods in org.pgcodekeeper.core.database.api.schema with parameters of type IDatabase -
Uses of IDatabase in org.pgcodekeeper.core.database.api.script
Methods in org.pgcodekeeper.core.database.api.script with parameters of type IDatabaseModifier and TypeMethodDescriptionIScriptBuilder.createScript(TreeElement root, IDatabase oldDb, IDatabase newDb) Gets selected elements from root, compares them between source and target and generates a migration script. -
Uses of IDatabase in org.pgcodekeeper.core.database.base.jdbc
Classes in org.pgcodekeeper.core.database.base.jdbc with type parameters of type IDatabaseModifier and TypeClassDescriptionclassAbstractJdbcReader<T extends AbstractJdbcLoader<? extends IDatabase>>Abstract base class for JDBC statement readers that process database metadata.classAbstractSearchPathJdbcReader<T extends AbstractJdbcLoader<? extends IDatabase>> -
Uses of IDatabase in org.pgcodekeeper.core.database.base.loader
Classes in org.pgcodekeeper.core.database.base.loader with type parameters of type IDatabaseModifier and TypeClassDescriptionclassAbstractDumpLoader<T extends IDatabase>Base database dump loaderclassAbstractJdbcLoader<T extends IDatabase>Base JDBC database loaderclassAbstractLibraryLoader<T extends IDatabase>Database loader for external library dependencies.classAbstractLoader<T extends IDatabase>Base database loaderclassAbstractProjectLoader<T extends IDatabase>Base project loader for loading database schemas from project directory structures. -
Uses of IDatabase in org.pgcodekeeper.core.database.base.parser
Classes in org.pgcodekeeper.core.database.base.parser with type parameters of type IDatabaseModifier and TypeClassDescriptionclassCustomParserListener<T extends IDatabase>Base class for custom ANTLR parse tree listeners that build database schema models.Methods in org.pgcodekeeper.core.database.base.parser with parameters of type IDatabaseModifier and TypeMethodDescriptionstatic voidFullAnalyze.fullAnalyze(IDatabase db, List<Object> errors, ISupportedVersion version) Performs full analysis of the database using metadata created from the database.static voidFullAnalyze.fullAnalyze(IDatabase db, MetaContainer metaDb, List<Object> errors) Performs full analysis of the database using the provided metadata container. -
Uses of IDatabase in org.pgcodekeeper.core.database.base.parser.launcher
Methods in org.pgcodekeeper.core.database.base.parser.launcher with parameters of type IDatabaseModifier and TypeMethodDescriptionvoidAbstractAnalysisLauncher.updateStmt(IDatabase db) Updates the saved statement to the twin found in the given db -
Uses of IDatabase in org.pgcodekeeper.core.database.base.parser.statement
Classes in org.pgcodekeeper.core.database.base.parser.statement with type parameters of type IDatabaseModifier and TypeClassDescriptionclassParserAbstract<S extends IDatabase>Abstract base class for database object parsers that provides common parsing functionality and utilities for working with ANTLR-generated parse trees. -
Uses of IDatabase in org.pgcodekeeper.core.database.base.schema
Methods in org.pgcodekeeper.core.database.base.schema with parameters of type IDatabase -
Uses of IDatabase in org.pgcodekeeper.core.database.base.schema.meta
Methods in org.pgcodekeeper.core.database.base.schema.meta that return IDatabaseMethods in org.pgcodekeeper.core.database.base.schema.meta with parameters of type IDatabaseModifier and TypeMethodDescriptionstatic MetaContainerMetaUtils.createTreeFromDb(IDatabase db, ISupportedVersion version) Creates a metadata container from a database object.static Map<String,List<MetaStatement>> MetaUtils.getObjDefinitions(IDatabase db) Returns object definitions grouped by file path. -
Uses of IDatabase in org.pgcodekeeper.core.database.base.script
Methods in org.pgcodekeeper.core.database.base.script with parameters of type IDatabaseModifier and TypeMethodDescriptionAbstractScriptBuilder.createScript(TreeElement root, IDatabase oldDb, IDatabase newDb) -
Uses of IDatabase in org.pgcodekeeper.core.database.ch
Methods in org.pgcodekeeper.core.database.ch with parameters of type IDatabaseModifier and TypeMethodDescriptionChDatabaseProvider.getModelExporter(Path outDir, IDatabase newDb, Collection<TreeElement> changedObjects, ISettings settings) ChDatabaseProvider.getProjectUpdater(IDatabase newDb, IDatabase oldDb, Collection<TreeElement> changedObjects, Path projectPath, boolean overridesOnly, ISettings settings) -
Uses of IDatabase in org.pgcodekeeper.core.database.ch.project
Constructors in org.pgcodekeeper.core.database.ch.project with parameters of type IDatabaseModifierConstructorDescriptionChModelExporter(Path outDir, IDatabase db, String sqlEncoding, ISettings settings) Creates a new ChModelExporter for full database export.ChModelExporter(Path outDir, IDatabase newDb, IDatabase oldDb, Collection<TreeElement> changedObjects, String sqlEncoding, ISettings settings) Creates a new ChModelExporter for partial or project export.ChOverridesModelExporter(Path outDir, IDatabase newDb, IDatabase oldDb, Collection<TreeElement> changedObjects, String sqlEncoding, ISettings settings) Creates a new ChOverridesModelExporter.ChProjectUpdater(IDatabase dbNew, IDatabase dbOld, Collection<TreeElement> changedObjects, String encoding, Path dirExport, boolean overridesOnly, ISettings settings) Creates a new ClickHouse project updater with specified configuration. -
Uses of IDatabase in org.pgcodekeeper.core.database.ch.schema
Classes in org.pgcodekeeper.core.database.ch.schema that implement IDatabaseModifier and TypeClassDescriptionclassRepresents a ClickHouse database with its schema objects. -
Uses of IDatabase in org.pgcodekeeper.core.database.ms
Methods in org.pgcodekeeper.core.database.ms with parameters of type IDatabaseModifier and TypeMethodDescriptionMsDatabaseProvider.getModelExporter(Path outDir, IDatabase newDb, Collection<TreeElement> changedObjects, ISettings settings) MsDatabaseProvider.getProjectUpdater(IDatabase newDb, IDatabase oldDb, Collection<TreeElement> changedObjects, Path projectPath, boolean overridesOnly, ISettings settings) -
Uses of IDatabase in org.pgcodekeeper.core.database.ms.project
Constructors in org.pgcodekeeper.core.database.ms.project with parameters of type IDatabaseModifierConstructorDescriptionMsModelExporter(Path outDir, IDatabase db, String sqlEncoding, ISettings settings) Creates a new MsModelExporter for full database export.MsModelExporter(Path outDir, IDatabase newDb, IDatabase oldDb, Collection<TreeElement> changedObjects, String sqlEncoding, ISettings settings) Creates a new MsModelExporter for partial or project export.MsOverridesModelExporter(Path outDir, IDatabase newDb, IDatabase oldDb, Collection<TreeElement> changedObjects, String sqlEncoding, ISettings settings) Creates a new MsOverridesModelExporter.MsProjectUpdater(IDatabase dbNew, IDatabase dbOld, Collection<TreeElement> changedObjects, String encoding, Path dirExport, boolean overridesOnly, ISettings settings) Creates a new MS SQL project updater with specified configuration. -
Uses of IDatabase in org.pgcodekeeper.core.database.ms.schema
Classes in org.pgcodekeeper.core.database.ms.schema that implement IDatabaseModifier and TypeClassDescriptionclassRepresents a Microsoft SQL database with its schemas, assemblies, roles, and users. -
Uses of IDatabase in org.pgcodekeeper.core.database.pg
Methods in org.pgcodekeeper.core.database.pg with parameters of type IDatabaseModifier and TypeMethodDescriptionPgDatabaseProvider.getModelExporter(Path outDir, IDatabase newDb, Collection<TreeElement> changedObjects, ISettings settings) PgDatabaseProvider.getProjectUpdater(IDatabase newDb, IDatabase oldDb, Collection<TreeElement> changedObjects, Path projectPath, boolean overridesOnly, ISettings settings) -
Uses of IDatabase in org.pgcodekeeper.core.database.pg.jdbc
Methods in org.pgcodekeeper.core.database.pg.jdbc with parameters of type IDatabase -
Uses of IDatabase in org.pgcodekeeper.core.database.pg.parser.statement
Methods in org.pgcodekeeper.core.database.pg.parser.statement with parameters of type IDatabaseModifier and TypeMethodDescriptionstatic voidPgCreateDomain.parseDomainConstraint(PgDomain domain, PgConstraintCheck constr, SQLParser.Domain_constraintContext ctx, IDatabase db, String location, ISettings settings) Parses a domain constraint definition and configures the constraint object.static voidPgCreateTrigger.parseWhen(SQLParser.When_triggerContext whenCtx, PgTrigger trigger, IDatabase db, String location) Parses the WHEN clause of a trigger definition.static voidPgCreateRule.setConditionAndAddCommands(SQLParser.Create_rewrite_statementContext ctx, PgRule rule, IDatabase db, String location, ISettings settings) -
Uses of IDatabase in org.pgcodekeeper.core.database.pg.project
Constructors in org.pgcodekeeper.core.database.pg.project with parameters of type IDatabaseModifierConstructorDescriptionPgModelExporter(Path outDir, IDatabase db, String sqlEncoding, ISettings settings) Creates a new PgModelExporter for full database export.PgModelExporter(Path outDir, IDatabase newDb, IDatabase oldDb, Collection<TreeElement> changedObjects, String sqlEncoding, ISettings settings) Creates a new PgModelExporter for partial or project export.PgOverridesModelExporter(Path outDir, IDatabase newDb, IDatabase oldDb, Collection<TreeElement> changedObjects, String sqlEncoding, ISettings settings) Creates a new PgOverridesModelExporter.PgProjectUpdater(IDatabase dbNew, IDatabase dbOld, Collection<TreeElement> changedObjects, String encoding, Path dirExport, boolean overridesOnly, ISettings settings) Creates a new PostgreSQL project updater with specified configuration. -
Uses of IDatabase in org.pgcodekeeper.core.database.pg.schema
Classes in org.pgcodekeeper.core.database.pg.schema that implement IDatabase -
Uses of IDatabase in org.pgcodekeeper.core.model.difftree
Methods in org.pgcodekeeper.core.model.difftree with parameters of type IDatabaseModifier and TypeMethodDescriptionstatic TreeElementCreates a diff tree comparing two database schemas.static TreeElementCreates a diff tree comparing two database schemas with progress monitoring.DiffTree.createTree(IDatabase left, IDatabase right) Creates a diff tree by comparing two database schemas and building a hierarchical tree structure representing the differences between them.TreeElement.getStatement(IDatabase db) Gets corresponding database statement from the specified database.TreeElement.getStatementSide(IDatabase left, IDatabase right) Gets statement from the corresponding database based on diff side.static Set<TreeElement>DiffTree.getTablesWithChangedColumns(IDatabase oldDbFull, IDatabase newDbFull, List<TreeElement> selected) Gets tables that have changed columns from the selected elements.Configures the flattener to include only edited elements. -
Uses of IDatabase in org.pgcodekeeper.core.model.graph
Methods in org.pgcodekeeper.core.model.graph that return IDatabaseModifier and TypeMethodDescriptionDepcyGraph.getDb()Copied database, graph source.
Do not modify any elements in this as it will break HashSets/HashMaps and with them the generated graph.Methods in org.pgcodekeeper.core.model.graph with parameters of type IDatabaseModifier and TypeMethodDescriptionDepcyFinder.byPatterns(int depth, boolean isReverse, Collection<DbObjType> filterObjTypes, boolean isInvertFilter, IDatabase db, Collection<String> names) Finds dependencies by matching object name patterns.static voidActionsToScriptConverter.fillScript(SQLScript script, Set<ActionContainer> actions, Set<IStatement> toRefresh, IDatabase oldDbFull, IDatabase newDbFull, List<TreeElement> selected) Fills the SQL script with statements based on resolved database actions.static Set<ActionContainer>DepcyResolver.resolve(IDatabase oldDb, IDatabase newDb, List<Map.Entry<IStatement, IStatement>> additionalDependenciesOldDb, List<Map.Entry<IStatement, IStatement>> additionalDependenciesNewDb, Set<IStatement> toRefresh, List<DbObject> dbObjects, DiffSettings diffSettings) Constructors in org.pgcodekeeper.core.model.graph with parameters of type IDatabaseModifierConstructorDescriptionActionsToScriptConverter(SQLScript script, Set<ActionContainer> actions, Set<IStatement> toRefresh, IDatabase oldDbFull, IDatabase newDbFull) Creates a new ActionsToScriptConverter with the specified parameters.DepcyGraph(IDatabase graphSrc) Creates a dependency graph from the database schema.DepcyGraph(IDatabase graphSrc, boolean reduceGraph) Creates a dependency graph with optional graph reduction.DepcyResolver(IDatabase oldDatabase, IDatabase newDatabase, DiffSettings diffSettings, Set<IStatement> toRefresh) DepcyTreeExtender(IDatabase dbSource, IDatabase dbTarget, TreeElement root) Creates a new dependency tree extender.SimpleDepcyResolver(IDatabase oldDatabase, boolean isShowColumns) Creates a dependency resolver with old database only.SimpleDepcyResolver(IDatabase oldDatabase, IDatabase newDatabase, boolean isShowColumns) Creates a dependency resolver with both old and new database schemas. -
Uses of IDatabase in org.pgcodekeeper.core.utils
Methods in org.pgcodekeeper.core.utils that return types with arguments of type IDatabaseModifier and TypeMethodDescriptionUtils.loadDatabases(ILoader oldDbLoader, ILoader newDbLoader, IMonitor subMonitor, boolean isParallelLoad) Loads databases from loadersUtils.loadDatabases(ILoader oldDbLoader, ILoader newDbLoader, IMonitor subMonitor, boolean isParallelLoad) Loads databases from loaders