Package org.pgcodekeeper.core.schema
Interface IDatabase
- All Superinterfaces:
IStatement,IStatementContainer
- All Known Implementing Classes:
AbstractDatabase,ChDatabase,MsDatabase,PgDatabase
Interface representing a database containing schemas.
Provides access to database schemas and extends statement container functionality.
-
Method Summary
Modifier and TypeMethodDescriptionGets a schema by name.Collection<? extends ISchema>Gets all schemas in this database.Methods inherited from interface org.pgcodekeeper.core.schema.IStatement
getBareName, getComment, getDatabase, getName, getParent, getQualifiedName, getStatementTypeMethods inherited from interface org.pgcodekeeper.core.schema.IStatementContainer
addChild, getChild
-
Method Details
-
getSchemas
Collection<? extends ISchema> getSchemas()Gets all schemas in this database.- Returns:
- a collection of schemas
-
getSchema
Gets a schema by name.- Parameters:
name- the schema name- Returns:
- the schema with the given name, or null if not found
-