equal
deleted
inserted
replaced
1 PgManager |
1 PgManager |
2 ========= |
2 ========= |
3 |
3 |
4 PgManager is higher level database adapter for Python and Postgres. There is also MyManager for MySQL. Both are part of `pgtoolkit <http://hg.devl.cz/pgtoolkit>`_. |
4 PgManager is higher level database adapter for Python and Postgres. There is also MyManager for MySQL. Both are part of `pydbkit <http://hg.devl.cz/pydbkit>`_. |
5 |
5 |
6 PgManager offers following convenience functionality over psycopg: |
6 PgManager offers following convenience functionality over psycopg: |
7 |
7 |
8 * **Save and reuse database connection parameters** |
8 * **Save and reuse database connection parameters** |
9 |
9 |
31 Basic usage |
31 Basic usage |
32 ----------- |
32 ----------- |
33 |
33 |
34 :: |
34 :: |
35 |
35 |
36 from pgtoolkit import pgmanager |
36 from pydbkit 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: |
125 |
125 |
126 |
126 |
127 Methods |
127 Methods |
128 ------- |
128 ------- |
129 |
129 |
130 .. autoclass:: pgtoolkit.pgmanager.PgManager |
130 .. autoclass:: pydbkit.pgmanager.PgManager |
131 :members: |
131 :members: |
132 :undoc-members: |
132 :undoc-members: |
133 |
133 |