pyre.db.Backup¶
Module Contents¶
-
class
pyre.db.Backup.Backup¶ Bases:
pyre.db.Server.ServerComponent that saves SQL statement in a stream
-
database¶
-
doc= the name of the database to connect to¶
-
stream¶
-
doc= the stream in which to place SQL statements
-
attach(self)¶ Connect to the database
-
detach(self)¶ Close the connection to the database
-
execute(self, *sql)¶ Execute the sequence of SQL statements in {sql} as a single command
-
__enter__(self)¶ Hook invoked when the context manager is entered
-
__exit__(self, exc_type, exc_instance, exc_traceback)¶ Hook invoked when the context manager’s block exits
-