planemo.database package
Submodules
planemo.database.factory module
Create a DatabaseSource from supplied planemo configuration.
- planemo.database.factory.create_database_source(**kwds) DatabaseSource[source]
Return a
planemo.database.interface.DatabaseSourcefor configuration.
planemo.database.interface module
Describe the interface classes of the planemo.database package.
- class planemo.database.interface.DatabaseSource[source]
Bases:
objectInterface describing a source of profile databases.
- abstractmethod create_database(identifier)[source]
Create a database with specified short identifier.
Throw an exception if it already exists.
planemo.database.postgres module
Module describes a DatabaseSource for local postgres databases.
- class planemo.database.postgres.LocalPostgresDatabaseSource(**kwds)[source]
Bases:
ExecutesPostgresSqlMixin,DatabaseSourceLocal postgres database source managed through psql application.
planemo.database.postgres_docker module
Module describes a DatabaseSource for managed, dockerized postgres databases.
- class planemo.database.postgres_docker.DockerPostgresDatabaseSource(**kwds)[source]
Bases:
ExecutesPostgresSqlMixin,DatabaseSourcePostgres database running inside a Docker container.
planemo.database.postgres_singularity module
Module describes a DatabaseSource for managed, dockerized postgres databases.
- class planemo.database.postgres_singularity.SingularityPostgresDatabaseSource(**kwds)[source]
Bases:
ExecutesPostgresSqlMixin,DatabaseSourcePostgres database running inside a Singularity container. Should be used with “with” statements to automatically start and stop the container.
Module contents
Package is responsible for managing planemo profile databases.
This package makes it very easy to create and destroy databases, therefore it should not be used for production data - and should not even be connnected to a production database server.
- planemo.database.create_database_source(**kwds) DatabaseSource[source]
Return a
planemo.database.interface.DatabaseSourcefor configuration.