Uses of Class
org.pgcodekeeper.core.schema.AbstractDatabase
Packages that use AbstractDatabase
Package
Description
-
Uses of AbstractDatabase in org.pgcodekeeper.core
Methods in org.pgcodekeeper.core with parameters of type AbstractDatabaseModifier and TypeMethodDescriptionPgDiff.diff(TreeElement root, AbstractDatabase oldDb, AbstractDatabase newDb, List<Map.Entry<PgStatement, PgStatement>> additionalDependenciesOldDb, List<Map.Entry<PgStatement, PgStatement>> additionalDependenciesNewDb, IgnoreList ignoreList) Gets selected elements from root, compares them between source and target and generates a migration script. -
Uses of AbstractDatabase in org.pgcodekeeper.core.api
Methods in org.pgcodekeeper.core.api that return AbstractDatabaseModifier and TypeMethodDescriptionDatabaseFactory.loadFromDump(String dumpPath) Loads database from a database dump file and monitoring.DatabaseFactory.loadFromJdbc(String url) Loads database from a JDBC connection.DatabaseFactory.loadFromJdbc(String url, String ignoreSchemaListPath) Loads database from a JDBC connection with schema filtering and monitoring.DatabaseFactory.loadFromProject(String projectPath) Loads database from a project directory with schema filtering.DatabaseFactory.loadFromProject(String projectPath, String ignoreSchemaListPath) Loads database from a project directory with schema filtering and monitoring.Methods in org.pgcodekeeper.core.api with parameters of type AbstractDatabaseModifier and TypeMethodDescriptionstatic StringPgCodeKeeperApi.diff(ISettings settings, TreeElement root, AbstractDatabase oldDb, AbstractDatabase newDb, List<Map.Entry<PgStatement, PgStatement>> additionalDependenciesOldDb, List<Map.Entry<PgStatement, PgStatement>> additionalDependenciesNewDb, Collection<String> ignoreLists) Compares two databases and generates a migration script with filtering and additional dependencies.static StringPgCodeKeeperApi.diff(ISettings settings, AbstractDatabase oldDb, AbstractDatabase newDb) Compares two databases and generates a migration script.static StringPgCodeKeeperApi.diff(ISettings settings, AbstractDatabase oldDb, AbstractDatabase newDb, Collection<String> ignoreLists) Compares two databases and generates a migration script with filtering.static StringPgCodeKeeperApi.diff(ISettings settings, AbstractDatabase oldDb, AbstractDatabase newDb, List<Map.Entry<PgStatement, PgStatement>> additionalDependenciesOldDb, List<Map.Entry<PgStatement, PgStatement>> additionalDependenciesNewDb, Collection<String> ignoreLists) Compares two databases and generates a migration script with filtering and additional dependencies.static voidPgCodeKeeperApi.export(ISettings settings, AbstractDatabase dbToExport, String exportTo) Exports database schema to project files.static voidPgCodeKeeperApi.export(ISettings settings, AbstractDatabase dbToExport, String exportTo, Collection<String> ignoreLists, IMonitor monitor) Exports database schema to project files with filtering and progress tracking.static voidPgCodeKeeperApi.update(ISettings settings, AbstractDatabase oldDb, AbstractDatabase newDb, String projectToUpdate) Updates project with changes from database.static voidPgCodeKeeperApi.update(ISettings settings, AbstractDatabase oldDb, AbstractDatabase newDb, String projectToUpdate, Collection<String> ignoreLists, IMonitor monitor) Updates project with changes from database with filtering and progress tracking. -
Uses of AbstractDatabase in org.pgcodekeeper.core.loader
Methods in org.pgcodekeeper.core.loader that return AbstractDatabaseModifier and TypeMethodDescriptionstatic AbstractDatabaseCreates a new database instance based on the database type specified in settings.abstract AbstractDatabaseDatabaseLoader.load()Loads database schema without performing full analysis.LibraryLoader.load()Not supported operation for library loader.PgDumpLoader.load()ProjectLoader.load()DatabaseLoader.loadAndAnalyze()Loads database schema and performs full analysis.PgDumpLoader.loadAsync(AbstractDatabase d, Queue<AntlrTask<?>> antlrTasks) Loads SQL dump asynchronously into the provided database with default schema setup.PgDumpLoader.loadDatabase(AbstractDatabase intoDb, Queue<AntlrTask<?>> antlrTasks) Loads SQL dump into the specified database using ANTLR parsing.Methods in org.pgcodekeeper.core.loader with parameters of type AbstractDatabaseModifier and TypeMethodDescriptionstatic voidFullAnalyze.fullAnalyze(AbstractDatabase db, List<Object> errors) Performs full analysis of the database using metadata created from the database.static voidFullAnalyze.fullAnalyze(AbstractDatabase db, MetaContainer metaDb, List<Object> errors) Performs full analysis of the database using the provided metadata container.PgDumpLoader.loadAsync(AbstractDatabase d, Queue<AntlrTask<?>> antlrTasks) Loads SQL dump asynchronously into the provided database with default schema setup.PgDumpLoader.loadDatabase(AbstractDatabase intoDb, Queue<AntlrTask<?>> antlrTasks) Loads SQL dump into the specified database using ANTLR parsing.voidProjectLoader.loadOverrides(AbstractDatabase db) Loads statement overrides from the overrides directory and applies them to the database.Constructors in org.pgcodekeeper.core.loader with parameters of type AbstractDatabaseModifierConstructorDescriptionLibraryLoader(AbstractDatabase database, Path metaPath, List<Object> errors) Creates a new library loader with empty loaded paths set.LibraryLoader(AbstractDatabase database, Path metaPath, List<Object> errors, Set<String> loadedPaths) Creates a new library loader with specified loaded paths set. -
Uses of AbstractDatabase in org.pgcodekeeper.core.loader.ch
Methods in org.pgcodekeeper.core.loader.ch that return AbstractDatabase -
Uses of AbstractDatabase in org.pgcodekeeper.core.loader.jdbc.pg
Methods in org.pgcodekeeper.core.loader.jdbc.pg with parameters of type AbstractDatabaseModifier and TypeMethodDescriptionstatic voidSequencesReader.querySequencesData(AbstractDatabase db, JdbcLoaderBase loader) -
Uses of AbstractDatabase in org.pgcodekeeper.core.loader.ms
Methods in org.pgcodekeeper.core.loader.ms that return AbstractDatabase -
Uses of AbstractDatabase in org.pgcodekeeper.core.loader.pg
Methods in org.pgcodekeeper.core.loader.pg that return AbstractDatabaseModifier and TypeMethodDescriptionJdbcSystemLoader.load()Not supported operation for system loader. -
Uses of AbstractDatabase in org.pgcodekeeper.core.model.difftree
Methods in org.pgcodekeeper.core.model.difftree with parameters of type AbstractDatabaseModifier and TypeMethodDescriptionstatic TreeElementDiffTree.create(ISettings settings, AbstractDatabase left, AbstractDatabase right) Creates a diff tree comparing two database schemas.static TreeElementDiffTree.create(ISettings settings, AbstractDatabase left, AbstractDatabase right, IMonitor monitor) Creates a diff tree comparing two database schemas with progress monitoring.DiffTree.createTree(AbstractDatabase left, AbstractDatabase right) Creates a diff tree by comparing two database schemas and building a hierarchical tree structure representing the differences between them.TreeElement.getPgStatement(AbstractDatabase db) Gets corresponding database statement from the specified database.TreeElement.getPgStatementSide(AbstractDatabase left, AbstractDatabase right) Gets statement from the corresponding database based on diff side.static Set<TreeElement>DiffTree.getTablesWithChangedColumns(AbstractDatabase oldDbFull, AbstractDatabase newDbFull, List<TreeElement> selected) Gets tables that have changed columns from the selected elements.TreeFlattener.onlyEdits(AbstractDatabase dbSource, AbstractDatabase dbTarget) Configures the flattener to include only edited elements. -
Uses of AbstractDatabase in org.pgcodekeeper.core.model.exporter
Constructors in org.pgcodekeeper.core.model.exporter with parameters of type AbstractDatabaseModifierConstructorDescriptionModelExporter(Path outDir, AbstractDatabase db, DatabaseType databaseType, String sqlEncoding, ISettings settings) Creates a new ModelExporter for full database export.ModelExporter(Path outDir, AbstractDatabase newDb, AbstractDatabase oldDb, DatabaseType databaseType, Collection<TreeElement> changedObjects, String sqlEncoding, ISettings settings) Creates a new ModelExporter for partial or project export.OverridesModelExporter(Path outDir, AbstractDatabase newDb, AbstractDatabase oldDb, Collection<TreeElement> changedObjects, String sqlEncoding, DatabaseType dbType, ISettings settings) Creates a new overrides model exporter. -
Uses of AbstractDatabase in org.pgcodekeeper.core.model.graph
Methods in org.pgcodekeeper.core.model.graph that return AbstractDatabaseModifier 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 AbstractDatabaseModifier and TypeMethodDescriptionDepcyFinder.byPatterns(int depth, boolean isReverse, Collection<DbObjType> filterObjTypes, boolean isInvertFilter, AbstractDatabase db, Collection<String> names) Finds dependencies by matching object name patterns.static voidActionsToScriptConverter.fillScript(SQLScript script, Set<ActionContainer> actions, Set<PgStatement> toRefresh, AbstractDatabase oldDbFull, AbstractDatabase newDbFull, List<TreeElement> selected) Fills the SQL script with statements based on resolved database actions.static Set<ActionContainer>DepcyResolver.resolve(AbstractDatabase oldDb, AbstractDatabase newDb, List<Map.Entry<PgStatement, PgStatement>> additionalDependenciesOldDb, List<Map.Entry<PgStatement, PgStatement>> additionalDependenciesNewDb, Set<PgStatement> toRefresh, List<DbObject> dbObjects, ISettings settings) static StringInsertWriter.write(AbstractDatabase db, ISettings settings, String name, String filter, String source) Method for call from external classes to start the process of get all data which will be need to transfer and create insert script.Constructors in org.pgcodekeeper.core.model.graph with parameters of type AbstractDatabaseModifierConstructorDescriptionActionsToScriptConverter(SQLScript script, Set<ActionContainer> actions, Set<PgStatement> toRefresh, AbstractDatabase oldDbFull, AbstractDatabase newDbFull) Creates a new ActionsToScriptConverter with the specified parameters.DepcyGraph(AbstractDatabase graphSrc) Creates a dependency graph from the database schema.DepcyGraph(AbstractDatabase graphSrc, boolean reduceGraph) Creates a dependency graph with optional graph reduction.DepcyResolver(AbstractDatabase oldDatabase, AbstractDatabase newDatabase, ISettings settings, Set<PgStatement> toRefresh) DepcyTreeExtender(AbstractDatabase dbSource, AbstractDatabase dbTarget, TreeElement root) Creates a new dependency tree extender.SimpleDepcyResolver(AbstractDatabase oldDatabase, boolean isShowColumns) Creates a dependency resolver with old database only.SimpleDepcyResolver(AbstractDatabase oldDatabase, AbstractDatabase newDatabase, boolean isShowColumns) Creates a dependency resolver with both old and new database schemas. -
Uses of AbstractDatabase in org.pgcodekeeper.core.parsers.antlr.base
Classes in org.pgcodekeeper.core.parsers.antlr.base with type parameters of type AbstractDatabaseModifier and TypeClassDescriptionclassCustomParserListener<T extends AbstractDatabase>Base class for custom ANTLR parse tree listeners that build database schema models. -
Uses of AbstractDatabase in org.pgcodekeeper.core.parsers.antlr.base.launcher
Methods in org.pgcodekeeper.core.parsers.antlr.base.launcher with parameters of type AbstractDatabaseModifier and TypeMethodDescriptionvoidAbstractAnalysisLauncher.updateStmt(AbstractDatabase db) Updates the saved statement to the twin found in the given db -
Uses of AbstractDatabase in org.pgcodekeeper.core.parsers.antlr.base.statement
Classes in org.pgcodekeeper.core.parsers.antlr.base.statement with type parameters of type AbstractDatabaseModifier and TypeClassDescriptionclassParserAbstract<S extends AbstractDatabase>Abstract base class for database object parsers that provides common parsing functionality and utilities for working with ANTLR-generated parse trees. -
Uses of AbstractDatabase in org.pgcodekeeper.core.parsers.antlr.pg.statement
Methods in org.pgcodekeeper.core.parsers.antlr.pg.statement with parameters of type AbstractDatabaseModifier and TypeMethodDescriptionstatic voidCreateDomain.parseDomainConstraint(PgDomain domain, PgConstraintCheck constr, SQLParser.Domain_constraintContext ctx, AbstractDatabase db, String location, ISettings settings) Parses a domain constraint definition and configures the constraint object.static voidCreateTrigger.parseWhen(SQLParser.When_triggerContext whenCtx, PgTrigger trigger, AbstractDatabase db, String location) Parses the WHEN clause of a trigger definition.static voidCreateRule.setConditionAndAddCommands(SQLParser.Create_rewrite_statementContext ctx, PgRule rule, AbstractDatabase db, String location, ISettings settings) -
Uses of AbstractDatabase in org.pgcodekeeper.core.schema
Methods in org.pgcodekeeper.core.schema that return AbstractDatabaseModifier and TypeMethodDescriptionAbstractDatabase.getDatabase()AbstractSchema.getDatabase()default AbstractDatabaseISearchPath.getDatabase()Gets the database that contains this object.IStatement.getDatabase()Gets the database that contains this statement.final AbstractDatabaseAbstractDatabase.shallowCopy()Methods in org.pgcodekeeper.core.schema with parameters of type AbstractDatabaseModifier and TypeMethodDescriptionvoidAbstractDatabase.addLib(AbstractDatabase lib, String libName, String owner) Adds a library database to this database, merging its objects and analysis launchers.voidAbstractDatabase.copyLaunchers(AbstractDatabase db) Copies analysis launchers from another database to this one.PgStatement.getTwin(AbstractDatabase db) static Map<String,PgStatement> AbstractDatabase.listPgObjects(AbstractDatabase db) Creates a map of all database objects with their qualified names as keys. -
Uses of AbstractDatabase in org.pgcodekeeper.core.schema.ch
Subclasses of AbstractDatabase in org.pgcodekeeper.core.schema.chModifier and TypeClassDescriptionfinal classRepresents a ClickHouse database with its schema objects.Methods in org.pgcodekeeper.core.schema.ch that return AbstractDatabaseModifier and TypeMethodDescriptionChPolicy.getDatabase()ChRole.getDatabase()ChUser.getDatabase() -
Uses of AbstractDatabase in org.pgcodekeeper.core.schema.meta
Methods in org.pgcodekeeper.core.schema.meta that return AbstractDatabaseModifier and TypeMethodDescriptionMetaStatement.getDatabase()Returns the database containing this statement.Methods in org.pgcodekeeper.core.schema.meta with parameters of type AbstractDatabaseModifier and TypeMethodDescriptionstatic MetaContainerMetaUtils.createTreeFromDb(AbstractDatabase db) Creates a metadata container from a database object.static Map<String,List<MetaStatement>> MetaUtils.getObjDefinitions(AbstractDatabase db) Returns object definitions grouped by file path. -
Uses of AbstractDatabase in org.pgcodekeeper.core.schema.ms
Subclasses of AbstractDatabase in org.pgcodekeeper.core.schema.msModifier and TypeClassDescriptionfinal classRepresents a Microsoft SQL database with its schemas, assemblies, roles, and users.Methods in org.pgcodekeeper.core.schema.ms that return AbstractDatabaseModifier and TypeMethodDescriptionMsAssembly.getDatabase()MsRole.getDatabase()MsUser.getDatabase() -
Uses of AbstractDatabase in org.pgcodekeeper.core.schema.pg
Subclasses of AbstractDatabase in org.pgcodekeeper.core.schema.pgMethods in org.pgcodekeeper.core.schema.pg that return AbstractDatabaseModifier and TypeMethodDescriptionPgCast.getDatabase()PgEventTrigger.getDatabase()PgExtension.getDatabase()PgForeignDataWrapper.getDatabase()PgServer.getDatabase()PgUserMapping.getDatabase() -
Uses of AbstractDatabase in org.pgcodekeeper.core.utils
Constructors in org.pgcodekeeper.core.utils with parameters of type AbstractDatabaseModifierConstructorDescriptionProjectUpdater(AbstractDatabase dbNew, AbstractDatabase dbOld, Collection<TreeElement> changedObjects, DatabaseType dbType, String encoding, Path dirExport, boolean overridesOnly, ISettings settings) Creates a new project updater with specified configuration.