doc/pgmanager.rst
changeset 71 4251068a251a
parent 69 1bf7d2f5e00c
child 79 d02a36d0a9b0
equal deleted inserted replaced
70:77e65040711c 71:4251068a251a
    31 Basic usage
    31 Basic usage
    32 -----------
    32 -----------
    33 
    33 
    34 ::
    34 ::
    35 
    35 
    36   import pgmanager
    36   from pgtoolkit import pgmanager
    37 
    37 
    38   pgm = pgmanager.get_instance()
    38   pgm = pgmanager.get_instance()
    39   pgm.create_conn(hostaddr='127.0.0.1', dbname='postgres', isolation_level='autocommit')
    39   pgm.create_conn(hostaddr='127.0.0.1', dbname='postgres', isolation_level='autocommit')
    40 
    40 
    41   with pgm.cursor() as curs:
    41   with pgm.cursor() as curs: