(self, context, global_dict = None)
This object must be initiated in the beginning of each db service
This object must be initiated in the beginning of each db service
This object must be initiated in the beginning of each db service
def __init__(self, context, global_dict = None):
        """ This object must be initiated in the beginning of each db service
        """
        DBService.__init__(self, context, global_dict)

        rec = skytools.db_urldecode(context)
        if "username" not in rec:
            plpy.error("Username must be provided in db service context parameter")
        self.username = rec['username']     # used for logging purposes

        res = plpy.execute("select txid_current() as txid;")
        row = res[0]
        self.version = row["txid"]
        self.rows_found = 0
def __init__ ( self , context , global_dict = None ) : DBService . __init__ ( self , context , global_dict ) rec = skytools . db_urldecode ( context ) if "username" not in rec : plpy . error ( "Username must be provided in db service context parameter" ) self . username = rec [ 'username' ] # used for logging purposes res = plpy . execute ( "select txid_current() as txid;" ) row = res [ 0 ] self . version = row [ "txid" ] self . rows_found = 0