mirror of
https://github.com/psycopg/psycopg2.git
synced 2025-02-07 12:50:32 +03:00
Better docstrings for lib/ modules.
This commit is contained in:
parent
3168e7b95d
commit
0c67c641a8
|
@ -1,12 +1,11 @@
|
||||||
"""
|
"""psycopg extensions to the DBAPI-2.0
|
||||||
psycopg extensions to the DBAPI-2.0
|
|
||||||
|
|
||||||
This module holds all the extensions to the DBAPI-2.0 provided by psycopg:
|
This module holds all the extensions to the DBAPI-2.0 provided by psycopg.
|
||||||
|
|
||||||
connection -- the new-type inheritable connection class
|
connection -- the new-type inheritable connection class
|
||||||
cursor -- the new-type inheritable cursor class
|
cursor -- the new-type inheritable cursor class
|
||||||
adapt() -- exposes the PEP-246 compatile adapting machanism used
|
adapt() -- exposes the PEP-246 compatile adapting machanism used
|
||||||
by psycopg to adapt Python types to PostgreSQL ones
|
by psycopg to adapt Python types to PostgreSQL ones
|
||||||
"""
|
"""
|
||||||
# psycopg/extensions.py - DBAPI-2.0 extensions specific to psycopg
|
# psycopg/extensions.py - DBAPI-2.0 extensions specific to psycopg
|
||||||
#
|
#
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
"""Miscellaneous goodies for psycopg
|
"""Miscellaneous goodies for psycopg2
|
||||||
|
|
||||||
This module is a generic place used to hold little helper function
|
This module is a generic place used to hold little helper functions
|
||||||
and classes untill a better place in the distribution is found.
|
and classes untill a better place in the distribution is found.
|
||||||
"""
|
"""
|
||||||
# psycopg/extras.py - miscellaneous extra goodies for psycopg
|
# psycopg/extras.py - miscellaneous extra goodies for psycopg
|
||||||
|
|
|
@ -2,9 +2,9 @@
|
||||||
|
|
||||||
This module uses the new style connection and cursor types to build a psycopg
|
This module uses the new style connection and cursor types to build a psycopg
|
||||||
1.1.1.x compatibility layer. It should be considered a temporary hack to run
|
1.1.1.x compatibility layer. It should be considered a temporary hack to run
|
||||||
old code hile porting to psycopg 2. Import as follows:
|
old code hile porting to psycopg 2. Import it as follows:
|
||||||
|
|
||||||
from psycopg import psycopg1 as psycopg
|
from psycopg2 import psycopg1 as psycopg
|
||||||
"""
|
"""
|
||||||
# psycopg/psycopg1.py - psycopg 1.1.x compatibility module
|
# psycopg/psycopg1.py - psycopg 1.1.x compatibility module
|
||||||
#
|
#
|
||||||
|
|
|
@ -1,3 +1,9 @@
|
||||||
|
"""tzinfo implementations for psycopg2
|
||||||
|
|
||||||
|
This module holds twi different tzinfo implementations that can be used as
|
||||||
|
the 'tzinfo' argument to datetime constructors, directly passed to psycopg
|
||||||
|
functions or used to set the .tzinfo_factory attribute in cursors.
|
||||||
|
"""
|
||||||
# psycopg/tz.py - tzinfo implementation
|
# psycopg/tz.py - tzinfo implementation
|
||||||
#
|
#
|
||||||
# Copyright (C) 2003-2004 Federico Di Gregorio <fog@debian.org>
|
# Copyright (C) 2003-2004 Federico Di Gregorio <fog@debian.org>
|
||||||
|
|
Loading…
Reference in New Issue
Block a user