Package skytools :: Module scripting
[frames] | no frames]

Module scripting

source code

Useful functions and classes for database scripts.

Classes
  DBScript
Base class for database scripts.
Functions
 
daemonize()
Turn the process into daemon.
source code
 
run_single_process(runnable, daemon, pidfile)
Run runnable class, possibly daemonized, locked on pidfile.
source code
Variables
  I_AUTOCOMMIT = 0
isolation level constant for AUTOCOMMIT
  I_READ_COMMITTED = 1
isolation level constant for READ COMMITTED
  I_SERIALIZABLE = 2
isolation level constant for SERIALIZABLE
Function Details

daemonize()

source code 

Turn the process into daemon.

Goes background and disables all i/o.