Current Path : /usr/lib/python2.7/dist-packages/twisted/persisted/journal/ |
Current File : //usr/lib/python2.7/dist-packages/twisted/persisted/journal/rowjournal.pyc |
ó [³XMc @ sd d Z d d l m Z d d l m Z d d l Z e d ƒ \ Z Z Z d e j f d „ ƒ YZ d S( sæ Journal using twisted.enterprise.row RDBMS support. You're going to need the following table in your database:: | CREATE TABLE journalinfo | ( | commandIndex int | ); | INSERT INTO journalinfo VALUES (0); iÿÿÿÿ( t nested_scopes( t deferNi t RowJournalc B sk e Z d Z d „ Z d „ Z d „ Z d „ Z d d d d d „ Z d „ Z d „ Z d „ Z d „ Z RS( sÅ Journal that stores data 'snapshot' in using twisted.enterprise.row. Use this as the reflector instead of the original reflector. It may block on creation, if it has to run recovery. c C s5 | | _ g | _ d | _ t j j | | | ƒ d S( Ni ( t reflectort commandst syncingt baset Journalt __init__( t selft logt journaledServiceR ( ( sH /usr/lib/python2.7/dist-packages/twisted/persisted/journal/rowjournal.pyR ' s c C s | j j t | f ƒ d S( s+ Mark on object for updating when sync()ing.N( R t appendt UPDATE( R t obj( ( sH /usr/lib/python2.7/dist-packages/twisted/persisted/journal/rowjournal.pyt updateRow- s c C s | j j t | f ƒ d S( s, Mark on object for inserting when sync()ing.N( R R t INSERT( R R ( ( sH /usr/lib/python2.7/dist-packages/twisted/persisted/journal/rowjournal.pyt insertRow1 s c C s | j j t | f ƒ d S( s+ Mark on object for deleting when sync()ing.N( R R t DELETE( R R ( ( sH /usr/lib/python2.7/dist-packages/twisted/persisted/journal/rowjournal.pyt deleteRow5 s i c s5 ˆ j ƒ } | j ‡ ‡ ‡ ‡ ‡ ‡ f d † ƒ | S( s8 Flush all objects to the database and then load objects.c s( ˆ j j ˆ d ˆ d ˆ d ˆ d ˆ ƒS( Nt parentRowt datat whereClauset forceChildren( R t loadObjectsFrom( t result( R R t tableNameR R R ( sH /usr/lib/python2.7/dist-packages/twisted/persisted/journal/rowjournal.pyt <lambda><