TemporaryPostgresInstance¶
- class felis.tests.postgresql.TemporaryPostgresInstance(server, engine)¶
Bases:
object
Wrapper for a temporary Postgres database.
- Parameters:
Notes
This class was copied and modified from
lsst.daf.butler.tests.postgresql
.Attributes Summary
Return the SQLAlchemy engine for the temporary database server.
Return connection URL for the temporary database server.
Methods Summary
begin
()Return a SQLAlchemy connection to the test database.
Print information about the temporary database server.
Attributes Documentation
- engine¶
Return the SQLAlchemy engine for the temporary database server.
- Returns:
The SQLAlchemy engine.
- Return type:
- url¶
Return connection URL for the temporary database server.
- Returns:
The connection URL.
- Return type:
Methods Documentation
- begin()¶
Return a SQLAlchemy connection to the test database.
- Returns:
The SQLAlchemy connection.
- Return type: