Package org.pgcodekeeper.core.schema.ch
Class ChDatabase
java.lang.Object
org.pgcodekeeper.core.schema.PgStatement
org.pgcodekeeper.core.schema.AbstractDatabase
org.pgcodekeeper.core.schema.ch.ChDatabase
- All Implemented Interfaces:
IHashable,IDatabase,IStatement,IStatementContainer
Represents a ClickHouse database with its schema objects.
Contains collections of ClickHouse-specific objects like functions, policies, users, and roles
in addition to the standard schemas.
-
Field Summary
Fields inherited from class org.pgcodekeeper.core.schema.PgStatement
GO -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddChild(IStatement st) Adds a child statement to this container.booleanDeep part ofPgStatement.equals(Object).voidcomputeChildrenHash(Hasher hasher) Gets a child statement by name and type.Methods inherited from class org.pgcodekeeper.core.schema.AbstractDatabase
addAnalysisLauncher, addLib, addReference, addSchema, appendAlterSQL, clearAnalysisLaunchers, compare, computeHash, containsSchema, copyLaunchers, getAnalysisLaunchers, getCreationSQL, getDatabase, getDefaultSchema, getDropSQL, getObjReferences, getObjReferences, getOverrides, getSchema, getSchemas, getStatement, getStatementType, getVersion, listPgObjects, setDefaultSchema, setVersion, shallowCopyMethods inherited from class org.pgcodekeeper.core.schema.PgStatement
addAllDeps, addDep, addPrivilege, appendAlterComments, appendComments, appendOwnerSQL, canDrop, canDropBeforeCreate, checkComments, clearPrivileges, deepCopy, equals, getAuthor, getBareName, getChildren, getComment, getDeps, getDescendants, getDropSQL, getLibName, getLocation, getName, getObjectState, getObjectState, getOwner, getParent, getPrivileges, getQualifiedName, getSQL, getTwin, getTypeName, hasChildren, hashCode, isLib, isOwned, isSubElement, setAuthor, setComment, setLibName, setLocation, setOwner, setParent, toStringMethods inherited from interface org.pgcodekeeper.core.schema.IStatement
getBareName, getComment, getName, getParent, getQualifiedName
-
Constructor Details
-
ChDatabase
public ChDatabase()
-
-
Method Details
-
getChild
Description copied from interface:IStatementContainerGets a child statement by name and type.- Parameters:
name- the name of the child to findtype- the type of the child to find- Returns:
- the child statement, or null if not found
-
addChild
Description copied from interface:IStatementContainerAdds a child statement to this container.- Parameters:
st- the child statement to add
-
compareChildren
Description copied from class:PgStatementDeep part ofPgStatement.equals(Object). Compares all object's child PgStatements for equality.- Overrides:
compareChildrenin classAbstractDatabase
-
computeChildrenHash
- Overrides:
computeChildrenHashin classAbstractDatabase
-
getDbType
- Overrides:
getDbTypein classPgStatement
-