[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[gnue] r7623 - in trunk/gnue-common/src/datasources/drivers: . Base DBSI
From: |
reinhard |
Subject: |
[gnue] r7623 - in trunk/gnue-common/src/datasources/drivers: . Base DBSIG2 file other sql sql/interbase sql/maxdb sql/msado sql/mysql sql/oracle sql/postgres sql/sqlite |
Date: |
Mon, 20 Jun 2005 06:30:44 -0500 (CDT) |
Author: reinhard
Date: 2005-06-20 06:30:37 -0500 (Mon, 20 Jun 2005)
New Revision: 7623
Modified:
trunk/gnue-common/src/datasources/drivers/Base/Behavior.py
trunk/gnue-common/src/datasources/drivers/Base/Connection.py
trunk/gnue-common/src/datasources/drivers/Base/RecordSet.py
trunk/gnue-common/src/datasources/drivers/Base/ResultSet.py
trunk/gnue-common/src/datasources/drivers/Base/__init__.py
trunk/gnue-common/src/datasources/drivers/DBSIG2/Behavior.py
trunk/gnue-common/src/datasources/drivers/DBSIG2/Connection.py
trunk/gnue-common/src/datasources/drivers/DBSIG2/ResultSet.py
trunk/gnue-common/src/datasources/drivers/DBSIG2/__init__.py
trunk/gnue-common/src/datasources/drivers/__init__.py
trunk/gnue-common/src/datasources/drivers/file/Base.py
trunk/gnue-common/src/datasources/drivers/file/__init__.py
trunk/gnue-common/src/datasources/drivers/file/csvfile.py
trunk/gnue-common/src/datasources/drivers/file/dbffile.py
trunk/gnue-common/src/datasources/drivers/file/inifile.py
trunk/gnue-common/src/datasources/drivers/other/appserver.py
trunk/gnue-common/src/datasources/drivers/sql/__init__.py
trunk/gnue-common/src/datasources/drivers/sql/interbase/Behavior.py
trunk/gnue-common/src/datasources/drivers/sql/interbase/__init__.py
trunk/gnue-common/src/datasources/drivers/sql/interbase/kinterbasdb.py
trunk/gnue-common/src/datasources/drivers/sql/maxdb/Behavior.py
trunk/gnue-common/src/datasources/drivers/sql/maxdb/__init__.py
trunk/gnue-common/src/datasources/drivers/sql/maxdb/maxdb.py
trunk/gnue-common/src/datasources/drivers/sql/msado/Behavior.py
trunk/gnue-common/src/datasources/drivers/sql/msado/__init__.py
trunk/gnue-common/src/datasources/drivers/sql/msado/adodbapi.py
trunk/gnue-common/src/datasources/drivers/sql/mysql/Behavior.py
trunk/gnue-common/src/datasources/drivers/sql/mysql/__init__.py
trunk/gnue-common/src/datasources/drivers/sql/mysql/mysqldb.py
trunk/gnue-common/src/datasources/drivers/sql/oracle/Base.py
trunk/gnue-common/src/datasources/drivers/sql/oracle/Behavior.py
trunk/gnue-common/src/datasources/drivers/sql/oracle/__init__.py
trunk/gnue-common/src/datasources/drivers/sql/oracle/cxoracle.py
trunk/gnue-common/src/datasources/drivers/sql/oracle/dcoracle.py
trunk/gnue-common/src/datasources/drivers/sql/postgres/Base.py
trunk/gnue-common/src/datasources/drivers/sql/postgres/Behavior.py
trunk/gnue-common/src/datasources/drivers/sql/postgres/__init__.py
trunk/gnue-common/src/datasources/drivers/sql/postgres/psycopg.py
trunk/gnue-common/src/datasources/drivers/sql/postgres/pygresql.py
trunk/gnue-common/src/datasources/drivers/sql/postgres/pypgsql.py
trunk/gnue-common/src/datasources/drivers/sql/sqlite/Behavior.py
trunk/gnue-common/src/datasources/drivers/sql/sqlite/__init__.py
trunk/gnue-common/src/datasources/drivers/sql/sqlite/pysqlite.py
Log:
Comments and docstrings.
Modified: trunk/gnue-common/src/datasources/drivers/Base/Behavior.py
===================================================================
--- trunk/gnue-common/src/datasources/drivers/Base/Behavior.py 2005-06-20
09:56:54 UTC (rev 7622)
+++ trunk/gnue-common/src/datasources/drivers/Base/Behavior.py 2005-06-20
11:30:37 UTC (rev 7623)
@@ -1,4 +1,4 @@
-# GNU Enterprise Common Library - Base DB Driver - Schema behavior
+# GNU Enterprise Common Library - Base database driver - Schema behavior
#
# Copyright 2001-2005 Free Software Foundation
#
Modified: trunk/gnue-common/src/datasources/drivers/Base/Connection.py
===================================================================
--- trunk/gnue-common/src/datasources/drivers/Base/Connection.py
2005-06-20 09:56:54 UTC (rev 7622)
+++ trunk/gnue-common/src/datasources/drivers/Base/Connection.py
2005-06-20 11:30:37 UTC (rev 7623)
@@ -1,4 +1,4 @@
-# GNU Enterprise Common Library - Base DB Driver - Connection
+# GNU Enterprise Common Library - Base database driver - Connection
#
# Copyright 2001-2005 Free Software Foundation
#
Modified: trunk/gnue-common/src/datasources/drivers/Base/RecordSet.py
===================================================================
--- trunk/gnue-common/src/datasources/drivers/Base/RecordSet.py 2005-06-20
09:56:54 UTC (rev 7622)
+++ trunk/gnue-common/src/datasources/drivers/Base/RecordSet.py 2005-06-20
11:30:37 UTC (rev 7623)
@@ -1,4 +1,4 @@
-# GNU Enterprise Common Library - Base DB Driver - Record Set
+# GNU Enterprise Common Library - Base database driver - Record set
#
# Copyright 2001-2005 Free Software Foundation
#
Modified: trunk/gnue-common/src/datasources/drivers/Base/ResultSet.py
===================================================================
--- trunk/gnue-common/src/datasources/drivers/Base/ResultSet.py 2005-06-20
09:56:54 UTC (rev 7622)
+++ trunk/gnue-common/src/datasources/drivers/Base/ResultSet.py 2005-06-20
11:30:37 UTC (rev 7623)
@@ -1,4 +1,4 @@
-# GNU Enterprise Common Library - Base DB Driver - Result Set
+# GNU Enterprise Common Library - Base database driver - Result set
#
# Copyright 2001-2005 Free Software Foundation
#
Modified: trunk/gnue-common/src/datasources/drivers/Base/__init__.py
===================================================================
--- trunk/gnue-common/src/datasources/drivers/Base/__init__.py 2005-06-20
09:56:54 UTC (rev 7622)
+++ trunk/gnue-common/src/datasources/drivers/Base/__init__.py 2005-06-20
11:30:37 UTC (rev 7623)
@@ -1,4 +1,4 @@
-# GNU Enterprise Common Library - Base DB Driver
+# GNU Enterprise Common Library - Base database driver
#
# Copyright 2001-2005 Free Software Foundation
#
Modified: trunk/gnue-common/src/datasources/drivers/DBSIG2/Behavior.py
===================================================================
--- trunk/gnue-common/src/datasources/drivers/DBSIG2/Behavior.py
2005-06-20 09:56:54 UTC (rev 7622)
+++ trunk/gnue-common/src/datasources/drivers/DBSIG2/Behavior.py
2005-06-20 11:30:37 UTC (rev 7623)
@@ -1,4 +1,4 @@
-# GNU Enterprise Common Library - DBSIG2 drivers - Schema Support
+# GNU Enterprise Common Library - Generic DBSIG2 database driver - Behavior
#
# Copyright 2001-2005 Free Software Foundation
#
@@ -24,14 +24,15 @@
from gnue.common.datasources.drivers import Base
from gnue.common.datasources import GSchema
+
# =============================================================================
-# Base class implementing schema support common to all DBSIG2 based drivers
+# Behavior class
# =============================================================================
class Behavior (Base.Behavior):
"""
- Implementation of schema support (writing) common to all DBSIG2 based backend
- drivers.
+ Generic Behavior class for SQL based backends using a DBSIG2 compatible
+ Python module.
@cvar _alterMultiple: boolean flag indicating wether an 'alter table'
statement can contain multiple fields or not.
Modified: trunk/gnue-common/src/datasources/drivers/DBSIG2/Connection.py
===================================================================
--- trunk/gnue-common/src/datasources/drivers/DBSIG2/Connection.py
2005-06-20 09:56:54 UTC (rev 7622)
+++ trunk/gnue-common/src/datasources/drivers/DBSIG2/Connection.py
2005-06-20 11:30:37 UTC (rev 7623)
@@ -1,4 +1,4 @@
-# GNU Enterprise Common Library - DBSIG2 DB Driver - Connection
+# GNU Enterprise Common Library - Generic DBSIG2 database driver - Connection
#
# Copyright 2001-2005 Free Software Foundation
#
@@ -35,12 +35,13 @@
# =============================================================================
-# Generic DBSIG2 connection class
+# Connection class
# =============================================================================
class Connection (Base.Connection):
"""
- The base class for all drivers that use DBSIG2 compatible modules.
+ Generic Connection class for SQL based backends using a DBSIG2 compatible
+ Python module.
Driver plugins derived from this driver must subclass this class and
overwrite at least the L{_drivername} class variable and implement the
Modified: trunk/gnue-common/src/datasources/drivers/DBSIG2/ResultSet.py
===================================================================
--- trunk/gnue-common/src/datasources/drivers/DBSIG2/ResultSet.py
2005-06-20 09:56:54 UTC (rev 7622)
+++ trunk/gnue-common/src/datasources/drivers/DBSIG2/ResultSet.py
2005-06-20 11:30:37 UTC (rev 7623)
@@ -1,4 +1,4 @@
-# GNU Enterprise Common Library - DBSIG2 DB Driver - ResultSet
+# GNU Enterprise Common Library - Generic DBSIG2 database driver - Result set
#
# Copyright 2001-2005 Free Software Foundation
#
@@ -29,12 +29,13 @@
# =============================================================================
-# Generic DBSIG2 connection class
+# ResultSet class
# =============================================================================
class ResultSet (Base.ResultSet):
"""
- Implementation of the ResultSet object for DBSIG2 based drivers.
+ Generic ResultSet class for SQL based backends using a DBSIG2 compatible
+ Python module.
"""
# ---------------------------------------------------------------------------
Modified: trunk/gnue-common/src/datasources/drivers/DBSIG2/__init__.py
===================================================================
--- trunk/gnue-common/src/datasources/drivers/DBSIG2/__init__.py
2005-06-20 09:56:54 UTC (rev 7622)
+++ trunk/gnue-common/src/datasources/drivers/DBSIG2/__init__.py
2005-06-20 11:30:37 UTC (rev 7623)
@@ -1,10 +1,13 @@
+# GNU Enterprise Common Library - Generic DBSIG2 database driver
#
+# Copyright 2000-2005 Free Software Foundation
+#
# This file is part of GNU Enterprise.
#
# GNU Enterprise is free software; you can redistribute it
# and/or modify it under the terms of the GNU General Public
# License as published by the Free Software Foundation; either
-# version 2, or(at your option) any later version.
+# version 2, or (at your option) any later version.
#
# GNU Enterprise is distributed in the hope that it will be
# useful, but WITHOUT ANY WARRANTY; without even the implied
@@ -16,12 +19,24 @@
# write to the Free Software Foundation, Inc., 59 Temple Place
# - Suite 330, Boston, MA 02111-1307, USA.
#
-# Copyright 2000-2005 Free Software Foundation
-#
+# $Id$
-# Indicate that this is no plugin
+"""
+Generic Database driver plugin for SQL based backends using a DBSIG2 compatible
+Python module.
+"""
+
__noplugin__ = True
+
+# =============================================================================
+# Driver info
+# =============================================================================
+
+class DriverInfo:
+ name = "SQL based backends"
+
+
+from Behavior import *
+from ResultSet import *
from Connection import *
-from ResultSet import *
-from Behavior import *
Modified: trunk/gnue-common/src/datasources/drivers/__init__.py
===================================================================
--- trunk/gnue-common/src/datasources/drivers/__init__.py 2005-06-20
09:56:54 UTC (rev 7622)
+++ trunk/gnue-common/src/datasources/drivers/__init__.py 2005-06-20
11:30:37 UTC (rev 7623)
@@ -1,4 +1,4 @@
-# GNU Enterprise Common Library - DB Drivers
+# GNU Enterprise Common Library - Database drivers
#
# Copyright 2001-2005 Free Software Foundation
#
Modified: trunk/gnue-common/src/datasources/drivers/file/Base.py
===================================================================
--- trunk/gnue-common/src/datasources/drivers/file/Base.py 2005-06-20
09:56:54 UTC (rev 7622)
+++ trunk/gnue-common/src/datasources/drivers/file/Base.py 2005-06-20
11:30:37 UTC (rev 7623)
@@ -1,4 +1,4 @@
-# GNU Enterprise Common Library - Generic File Based DB Driver
+# GNU Enterprise Common Library - Generic file based database driver
#
# Copyright 2000-2005 Free Software Foundation
#
@@ -40,6 +40,9 @@
# =============================================================================
class Behavior (Base.Behavior):
+ """
+ Generic Behavior class for file based backends.
+ """
# ---------------------------------------------------------------------------
# Read the connection's schema
Modified: trunk/gnue-common/src/datasources/drivers/file/__init__.py
===================================================================
--- trunk/gnue-common/src/datasources/drivers/file/__init__.py 2005-06-20
09:56:54 UTC (rev 7622)
+++ trunk/gnue-common/src/datasources/drivers/file/__init__.py 2005-06-20
11:30:37 UTC (rev 7623)
@@ -1,4 +1,4 @@
-# GNU Enterprise Common Library - Database driver plugins for files
+# GNU Enterprise Common Library - File based database driver plugins
#
# Copyright 2000-2005 Free Software Foundation
#
Modified: trunk/gnue-common/src/datasources/drivers/file/csvfile.py
===================================================================
--- trunk/gnue-common/src/datasources/drivers/file/csvfile.py 2005-06-20
09:56:54 UTC (rev 7622)
+++ trunk/gnue-common/src/datasources/drivers/file/csvfile.py 2005-06-20
11:30:37 UTC (rev 7623)
@@ -1,4 +1,4 @@
-# GNU Enterprise Common Library - CSV File DB Driver
+# GNU Enterprise Common Library - CSV file database driver
#
# Copyright 2000-2005 Free Software Foundation
#
Modified: trunk/gnue-common/src/datasources/drivers/file/dbffile.py
===================================================================
--- trunk/gnue-common/src/datasources/drivers/file/dbffile.py 2005-06-20
09:56:54 UTC (rev 7622)
+++ trunk/gnue-common/src/datasources/drivers/file/dbffile.py 2005-06-20
11:30:37 UTC (rev 7623)
@@ -1,4 +1,4 @@
-# GNU Enterprise Common Library - DBF File DB Driver
+# GNU Enterprise Common Library - DBF file database driver
#
# Copyright 2000-2005 Free Software Foundation
#
Modified: trunk/gnue-common/src/datasources/drivers/file/inifile.py
===================================================================
--- trunk/gnue-common/src/datasources/drivers/file/inifile.py 2005-06-20
09:56:54 UTC (rev 7622)
+++ trunk/gnue-common/src/datasources/drivers/file/inifile.py 2005-06-20
11:30:37 UTC (rev 7623)
@@ -1,4 +1,4 @@
-# GNU Enterprise Common Library - INI File DB Driver
+# GNU Enterprise Common Library - INI file database driver
#
# Copyright 2000-2005 Free Software Foundation
#
@@ -22,7 +22,7 @@
# $Id$
"""
-Database driver plugin for INI style configuration file backends
+Database driver plugin for INI style configuration file backends.
"""
import ConfigParser
Modified: trunk/gnue-common/src/datasources/drivers/other/appserver.py
===================================================================
--- trunk/gnue-common/src/datasources/drivers/other/appserver.py
2005-06-20 09:56:54 UTC (rev 7622)
+++ trunk/gnue-common/src/datasources/drivers/other/appserver.py
2005-06-20 11:30:37 UTC (rev 7623)
@@ -1,4 +1,4 @@
-# GNU Enterprise Datasource Library - Driver for GNUe-AppServer
+# GNU Enterprise Datasource Library - GNUe-AppServer database driver
#
# Copyright 2000-2005 Free Software Foundation
#
@@ -97,6 +97,8 @@
class Behavior (Base.Behavior):
"""
+ Behavior class for GNUe-AppServer backends.
+
Limitations:
- Appserver cannot reproduce indices
"""
@@ -259,7 +261,7 @@
class ResultSet (Base.ResultSet):
"""
- Handles a resultset (i.e. a list) in the GNUe-AppServer backend.
+ ResultSet class for GNUe-AppServer backends.
"""
# ---------------------------------------------------------------------------
Modified: trunk/gnue-common/src/datasources/drivers/sql/__init__.py
===================================================================
--- trunk/gnue-common/src/datasources/drivers/sql/__init__.py 2005-06-20
09:56:54 UTC (rev 7622)
+++ trunk/gnue-common/src/datasources/drivers/sql/__init__.py 2005-06-20
11:30:37 UTC (rev 7623)
@@ -1,4 +1,4 @@
-# GNU Enterprise Common Library - Database drivers for SQL based backends
+# GNU Enterprise Common Library - SQL based database driver plugins
#
# Copyright 2000-2005 Free Software Foundation
#
Modified: trunk/gnue-common/src/datasources/drivers/sql/interbase/Behavior.py
===================================================================
--- trunk/gnue-common/src/datasources/drivers/sql/interbase/Behavior.py
2005-06-20 09:56:54 UTC (rev 7622)
+++ trunk/gnue-common/src/datasources/drivers/sql/interbase/Behavior.py
2005-06-20 11:30:37 UTC (rev 7623)
@@ -1,4 +1,4 @@
-# GNU Enterprise Common Library - Interbase/Firebird driver - Schema support
+# GNU Enterprise Common Library - Schema support for Firebird/Interbase
#
# Copyright 2001-2005 Free Software Foundation
#
@@ -21,18 +21,25 @@
#
# $Id$
+"""
+Schema support plugin for Firebird/Interbase backends.
+"""
+
import re
from gnue.common.datasources.GLoginHandler import BasicLoginHandler
from gnue.common.datasources.drivers import DBSIG2
from gnue.common.datasources import GSchema
+
# =============================================================================
-# Schema support for Interbase/Firebird database backends
+# Behavior class
# =============================================================================
class Behavior (DBSIG2.Behavior):
"""
+ Behavior class for Firebird/Interbase backends.
+
Limitations:
- Interbase/Firebird has no native boolean datatype. That's why this
introspection module treats the domain 'BOOLEAN' as boolean data types.
Modified: trunk/gnue-common/src/datasources/drivers/sql/interbase/__init__.py
===================================================================
--- trunk/gnue-common/src/datasources/drivers/sql/interbase/__init__.py
2005-06-20 09:56:54 UTC (rev 7622)
+++ trunk/gnue-common/src/datasources/drivers/sql/interbase/__init__.py
2005-06-20 11:30:37 UTC (rev 7623)
@@ -1,4 +1,4 @@
-# GNU Enterprise Common Library - Firebird/Interbase DB Driver
+# GNU Enterprise Common Library - Firebird/Interbase database driver plugins
#
# Copyright 2000-2005 Free Software Foundation
#
@@ -22,11 +22,12 @@
# $Id: csvfile.py 7615 2005-06-17 15:24:00Z reinhard $
"""
-Database driver plugin for Firebird and Interbase backends.
+Database driver plugins for Firebird/Interbase backends.
"""
+
# =============================================================================
-# Define alias for 'firebird'
+# Define alias for this plugin
# =============================================================================
__pluginalias__ = ['firebird']
@@ -37,8 +38,11 @@
# =============================================================================
class DriverInfo:
+
name = "Firebird/Interbase"
+
url = "http://www.firebirdsql.org/"
+
description = """
Firebird is a free relational database offering many ANSI SQL-92 features that
runs on GNU/Linux, Windows, and a variety of Unix platforms. Firebird offers
@@ -53,4 +57,5 @@
Firebird is a popular choice of GNUe's Windows-based developers.
"""
+
isfree = True
Modified: trunk/gnue-common/src/datasources/drivers/sql/interbase/kinterbasdb.py
===================================================================
--- trunk/gnue-common/src/datasources/drivers/sql/interbase/kinterbasdb.py
2005-06-20 09:56:54 UTC (rev 7622)
+++ trunk/gnue-common/src/datasources/drivers/sql/interbase/kinterbasdb.py
2005-06-20 11:30:37 UTC (rev 7623)
@@ -1,4 +1,4 @@
-# GNU Enterprise Common Library - Interbase DB Driver
+# GNU Enterprise Common Library - Firebird database driver using KinterbasDB
#
# Copyright 2001-2005 Free Software Foundation
#
@@ -22,7 +22,8 @@
# $Id$
"""
-Database driver plugin for Firebird/Interbase using kinterbasdb.
+Database driver plugin for Firebird/Interbase backends using the KinterbasDB
+DBSIG2 module.
"""
__all__ = ['Connection']
@@ -91,12 +92,12 @@
# =============================================================================
-# Interbase Connection class
+# Connection class
# =============================================================================
class Connection (DBSIG2.Connection):
"""
- Connection class for Interbase databases.
+ Connection class for Interbase backends using the KinterbasDB DBSIG2 module.
"""
_drivername = 'kinterbasdb'
Modified: trunk/gnue-common/src/datasources/drivers/sql/maxdb/Behavior.py
===================================================================
--- trunk/gnue-common/src/datasources/drivers/sql/maxdb/Behavior.py
2005-06-20 09:56:54 UTC (rev 7622)
+++ trunk/gnue-common/src/datasources/drivers/sql/maxdb/Behavior.py
2005-06-20 11:30:37 UTC (rev 7623)
@@ -1,4 +1,4 @@
-# GNU Enterprise Common Library - SAP DB driver - Schema Support
+# GNU Enterprise Common Library - Schema support for MaxDB/SAP-DB
#
# Copyright 2001-2005 Free Software Foundation
#
@@ -21,17 +21,24 @@
#
# $Id$
+"""
+Schema support plugin for MaxDB/SAP-DB backends.
+"""
+
from gnue.common.apps import errors
from gnue.common.datasources.GLoginHandler import BasicLoginHandler
from gnue.common.datasources.drivers import DBSIG2
from gnue.common.datasources import GSchema
+
# =============================================================================
-#
+# Behavior class
# =============================================================================
class Behavior (DBSIG2.Behavior):
"""
+ Behavior class for MaxDB/SAP-DB backends.
+
Limitations:
- MaxDB has no named primary keys, so we build them from "pk_<tablename>"
"""
Modified: trunk/gnue-common/src/datasources/drivers/sql/maxdb/__init__.py
===================================================================
--- trunk/gnue-common/src/datasources/drivers/sql/maxdb/__init__.py
2005-06-20 09:56:54 UTC (rev 7622)
+++ trunk/gnue-common/src/datasources/drivers/sql/maxdb/__init__.py
2005-06-20 11:30:37 UTC (rev 7623)
@@ -1,4 +1,4 @@
-# GNU Enterprise Common Library - MaxDB/SAP-DB DB Driver
+# GNU Enterprise Common Library - MaxDB/SAP-DB database driver plugins
#
# Copyright 2000-2005 Free Software Foundation
#
@@ -22,11 +22,12 @@
# $Id$
"""
-Database driver plugin for MaxDB and SAP-DB backends.
+Database driver plugins for MaxDB/SAP-DB backends.
"""
+
# =============================================================================
-# Define alias for 'firebird'
+# Define alias for this plugin
# =============================================================================
__pluginalias__ = ['sapdb']
@@ -37,8 +38,11 @@
# =============================================================================
class DriverInfo:
+
name = "MaxDB (formerly SAP-DB)"
+
url = "http://www.mysql.com/products/maxdb/"
+
description = """
MySQL's MaxDB is an enhanced version of SAP DB, SAP AG's open source
database. MaxDB is a heavy-duty, SAP-certified open source database
@@ -47,4 +51,5 @@
MaxDB is licensed under both the GPL and a fee-based, commercial license.
"""
+
isfree = True
Modified: trunk/gnue-common/src/datasources/drivers/sql/maxdb/maxdb.py
===================================================================
--- trunk/gnue-common/src/datasources/drivers/sql/maxdb/maxdb.py
2005-06-20 09:56:54 UTC (rev 7622)
+++ trunk/gnue-common/src/datasources/drivers/sql/maxdb/maxdb.py
2005-06-20 11:30:37 UTC (rev 7623)
@@ -1,4 +1,4 @@
-# GNU Enterprise Common - MaxDB/SAP-DB DB driver - Connection
+# GNU Enterprise Common Library - MaxDB database driver
#
# Copyright 2001-2005 Free Software Foundation
#
@@ -21,6 +21,10 @@
#
# $Id$
+"""
+Database driver plugin for MaxDB/SAP-DB backends.
+"""
+
__all__ = ['Connection']
from gnue.common.datasources.drivers import DBSIG2
@@ -90,12 +94,12 @@
# =============================================================================
-# MaxDB/SAP-DB Connection class
+# Connection class
# =============================================================================
class Connection (DBSIG2.Connection):
"""
- Connection class for MaxDB and SAP-DB databases.
+ Connection class for MaxDB backends.
"""
_drivername = 'sapdb.dbapi'
Modified: trunk/gnue-common/src/datasources/drivers/sql/msado/Behavior.py
===================================================================
--- trunk/gnue-common/src/datasources/drivers/sql/msado/Behavior.py
2005-06-20 09:56:54 UTC (rev 7622)
+++ trunk/gnue-common/src/datasources/drivers/sql/msado/Behavior.py
2005-06-20 11:30:37 UTC (rev 7623)
@@ -1,4 +1,4 @@
-# GNU Enterprise Common Library - ADO DB API - Schema Support
+# GNU Enterprise Common Library - Schema support for MS-ADO
#
# Copyright 2001-2005 Free Software Foundation
#
@@ -21,14 +21,22 @@
#
# $Id$
+"""
+Schema support plugin for MS-ADO backends.
+"""
+
from gnue.common.datasources.drivers import Base
from gnue.common.datasources import GSchema
+
# =============================================================================
-# This class implements schema support for ado db drivers
+# Behavior class
# =============================================================================
class Behavior (Base.Behavior):
+ """
+ Behavior class for MS-ADO backends.
+ """
# ---------------------------------------------------------------------------
# Constructor
Modified: trunk/gnue-common/src/datasources/drivers/sql/msado/__init__.py
===================================================================
--- trunk/gnue-common/src/datasources/drivers/sql/msado/__init__.py
2005-06-20 09:56:54 UTC (rev 7622)
+++ trunk/gnue-common/src/datasources/drivers/sql/msado/__init__.py
2005-06-20 11:30:37 UTC (rev 7623)
@@ -1,4 +1,4 @@
-# GNU Enterprise Common Library - MS-ADO DB Driver
+# GNU Enterprise Common Library - MS-ADO database driver plugins
#
# Copyright 2000-2005 Free Software Foundation
#
@@ -22,17 +22,22 @@
# $Id: csvfile.py 7615 2005-06-17 15:24:00Z reinhard $
"""
-Database driver plugin for MS-ADO backends.
+Database driver plugins for MS-ADO backends.
"""
+
# =============================================================================
# Driver info
# =============================================================================
class DriverInfo:
+
name = "MS ADO (MS SQL-Server/MS Access)"
+
url = ""
+
description = """
The Microsoft ADO API allows access MS SQL-Server and MS Access databases.
"""
+
isfree = False
Modified: trunk/gnue-common/src/datasources/drivers/sql/msado/adodbapi.py
===================================================================
--- trunk/gnue-common/src/datasources/drivers/sql/msado/adodbapi.py
2005-06-20 09:56:54 UTC (rev 7622)
+++ trunk/gnue-common/src/datasources/drivers/sql/msado/adodbapi.py
2005-06-20 11:30:37 UTC (rev 7623)
@@ -1,4 +1,4 @@
-# GNU Enterprise Common Library - ADO DB Driver
+# GNU Enterprise Common Library - MS-ADO database driver using adodbapi
#
# Copyright 2001-2005 Free Software Foundation
#
@@ -21,6 +21,10 @@
#
# $Id$
+"""
+Database driver plugin for MS-ADO backends using the adodbapi DBSIG2 module.
+"""
+
__all__ = ['Connection']
import string
@@ -115,12 +119,12 @@
# =============================================================================
-# ADO Connection class
+# Connection class
# =============================================================================
class Connection (DBSIG2.Connection):
"""
- Connection class for ADO databases.
+ Connection class for MS ADO backends using the adodbapi DBSIG2 module.
"""
_drivername = 'adodbapi'
Modified: trunk/gnue-common/src/datasources/drivers/sql/mysql/Behavior.py
===================================================================
--- trunk/gnue-common/src/datasources/drivers/sql/mysql/Behavior.py
2005-06-20 09:56:54 UTC (rev 7622)
+++ trunk/gnue-common/src/datasources/drivers/sql/mysql/Behavior.py
2005-06-20 11:30:37 UTC (rev 7623)
@@ -1,4 +1,4 @@
-# GNU Enterprise Common Library - MySQL driver - Schema Support
+# GNU Enterprise Common Library - Schema support for MySQL
#
# Copyright 2001-2005 Free Software Foundation
#
@@ -21,17 +21,24 @@
#
# $Id$
+"""
+Schema support plugin for MySQL backends.
+"""
+
import os
from gnue.common.datasources.drivers import DBSIG2
from gnue.common.datasources import GSchema
+
# =============================================================================
-# This class implements schema support for MySQL database backends
+# Behavior class
# =============================================================================
class Behavior (DBSIG2.Behavior):
"""
+ Behavior class for MySQL backends.
+
Limitations
- MySQL does not support booleans, nor does it have column checks. So a
'boolean' column will be transformed into a 'number' silently.
@@ -338,4 +345,3 @@
else:
return "datetime"
-
Modified: trunk/gnue-common/src/datasources/drivers/sql/mysql/__init__.py
===================================================================
--- trunk/gnue-common/src/datasources/drivers/sql/mysql/__init__.py
2005-06-20 09:56:54 UTC (rev 7622)
+++ trunk/gnue-common/src/datasources/drivers/sql/mysql/__init__.py
2005-06-20 11:30:37 UTC (rev 7623)
@@ -1,4 +1,4 @@
-# GNU Enterprise Common Library - MySQL DB Driver
+# GNU Enterprise Common Library - MySQL database driver plugins
#
# Copyright 2000-2005 Free Software Foundation
#
@@ -22,16 +22,20 @@
# $Id$
"""
-Database driver plugin for MySQL backends.
+Database driver plugins for MySQL backends.
"""
+
# =============================================================================
# Driver info
# =============================================================================
class DriverInfo:
+
name = "MySQL (4.x+)"
+
url = "http://www.mysql.org/"
+
description = """
MySQL is a fast database that runs on numerous platforms. It is one of the
most popular free databases available.
@@ -42,4 +46,5 @@
Not all features of GNUe are usable under MySQL, such as auto-populating fields
with serials/sequences and query-by-detail.
"""
+
isfree = True
Modified: trunk/gnue-common/src/datasources/drivers/sql/mysql/mysqldb.py
===================================================================
--- trunk/gnue-common/src/datasources/drivers/sql/mysql/mysqldb.py
2005-06-20 09:56:54 UTC (rev 7622)
+++ trunk/gnue-common/src/datasources/drivers/sql/mysql/mysqldb.py
2005-06-20 11:30:37 UTC (rev 7623)
@@ -1,4 +1,4 @@
-# GNU Enterprise Common Library - MySQL DB Driver
+# GNU Enterprise Common Library - MySQL database driver using MySQLdb
#
# Copyright 2001-2005 Free Software Foundation
#
@@ -21,6 +21,10 @@
#
# $Id$
+"""
+Database driver plugin for MySQL backends using the MySQLdb DBSIG2 module.
+"""
+
__all__ = ['Connection']
from gnue.common.datasources.drivers import DBSIG2
@@ -89,12 +93,12 @@
# =============================================================================
-# MySQL Connection class
+# Connection class
# =============================================================================
class Connection (DBSIG2.Connection):
"""
- Connection class for Interbase databases.
+ Connection class for MySQL backends using the MySQLdb DBSIG2 module.
"""
_drivername = 'MySQLdb'
Modified: trunk/gnue-common/src/datasources/drivers/sql/oracle/Base.py
===================================================================
--- trunk/gnue-common/src/datasources/drivers/sql/oracle/Base.py
2005-06-20 09:56:54 UTC (rev 7622)
+++ trunk/gnue-common/src/datasources/drivers/sql/oracle/Base.py
2005-06-20 11:30:37 UTC (rev 7623)
@@ -1,4 +1,4 @@
-# GNU Enterprise Common Library - Generic Oracle DB driver
+# GNU Enterprise Common Library - Generic Oracle database driver
#
# Copyright 2001-2005 Free Software Foundation
#
@@ -21,6 +21,10 @@
#
# $Id$
+"""
+Generic database driver plugin for Oracle backends.
+"""
+
__all__ = ['Connection']
__noplugin__ = True
@@ -31,7 +35,7 @@
# =============================================================================
-# Generic Oracle Connection class
+# Connection class
# =============================================================================
class Connection (DBSIG2.Connection):
Modified: trunk/gnue-common/src/datasources/drivers/sql/oracle/Behavior.py
===================================================================
--- trunk/gnue-common/src/datasources/drivers/sql/oracle/Behavior.py
2005-06-20 09:56:54 UTC (rev 7622)
+++ trunk/gnue-common/src/datasources/drivers/sql/oracle/Behavior.py
2005-06-20 11:30:37 UTC (rev 7623)
@@ -1,4 +1,4 @@
-# GNU Enterprise Common Library - Oracle DB driver - Schema Support
+# GNU Enterprise Common Library - Schema support for Oracle
#
# Copyright 2001-2005 Free Software Foundation
#
@@ -21,16 +21,22 @@
#
# $Id$
+"""
+Schema support plugin for Oracle backends.
+"""
+
from gnue.common.datasources.drivers import DBSIG2
from gnue.common.datasources import GSchema
# =============================================================================
-# This class implements schema support for oracle drivers
+# Behavior class
# =============================================================================
class Behavior (DBSIG2.Behavior):
"""
+ Behavior class for Oracle backends.
+
Limitations:
- does not detect primary keys, indices and constraints
"""
Modified: trunk/gnue-common/src/datasources/drivers/sql/oracle/__init__.py
===================================================================
--- trunk/gnue-common/src/datasources/drivers/sql/oracle/__init__.py
2005-06-20 09:56:54 UTC (rev 7622)
+++ trunk/gnue-common/src/datasources/drivers/sql/oracle/__init__.py
2005-06-20 11:30:37 UTC (rev 7623)
@@ -1,4 +1,4 @@
-# GNU Enterprise Common Library - Oracle DB Drivers
+# GNU Enterprise Common Library - Oracle database driver plugins
#
# Copyright 2000-2005 Free Software Foundation
#
@@ -25,14 +25,19 @@
Database driver plugins for Oracle backends.
"""
+
# =============================================================================
# Driver info
# =============================================================================
class DriverInfo:
+
name = "Oracle (7.3, 8i+)"
+
url = ""
+
description = """
Oracle is a popular commercial relational database system.
"""
+
isfree = False
Modified: trunk/gnue-common/src/datasources/drivers/sql/oracle/cxoracle.py
===================================================================
--- trunk/gnue-common/src/datasources/drivers/sql/oracle/cxoracle.py
2005-06-20 09:56:54 UTC (rev 7622)
+++ trunk/gnue-common/src/datasources/drivers/sql/oracle/cxoracle.py
2005-06-20 11:30:37 UTC (rev 7623)
@@ -1,4 +1,4 @@
-# GNU Enterprise Common Library - Oracle DB driver using cxoracle
+# GNU Enterprise Common Library - Oracle database driver using cxOracle
#
# Copyright 2001-2005 Free Software Foundation
#
@@ -21,6 +21,10 @@
#
# $Id$
+"""
+Database driver plugin for Oracle backends using the cxOracle DBSIG2 module.
+"""
+
__all__ = ('Connection')
from gnue.common.datasources.drivers.sql.oracle import Base
@@ -88,11 +92,12 @@
# =============================================================================
-# Oracle Connection class using cxoracle
+# Connection class
# =============================================================================
class Connection (Base.Connection):
"""
- Connection class for Oracle databases using the cxoracle DBSIG2 driver.
+ Connection class for Oracle backends using the cxOracle DBSIG2 module.
"""
+
_drivername = 'cx_Oracle'
Modified: trunk/gnue-common/src/datasources/drivers/sql/oracle/dcoracle.py
===================================================================
--- trunk/gnue-common/src/datasources/drivers/sql/oracle/dcoracle.py
2005-06-20 09:56:54 UTC (rev 7622)
+++ trunk/gnue-common/src/datasources/drivers/sql/oracle/dcoracle.py
2005-06-20 11:30:37 UTC (rev 7623)
@@ -1,4 +1,4 @@
-# GNU Enterprise Common Library - Oracle DB driver using cxoracle
+# GNU Enterprise Common Library - Oracle database driver using DCOracle
#
# Copyright 2001-2005 Free Software Foundation
#
@@ -21,6 +21,10 @@
#
# $Id$
+"""
+Database driver plugin for Oracle backends using the DCOracle DBSIG2 module.
+"""
+
__all__ = ('Connection')
from gnue.common.datasources.drivers.sql.oracle import Base
@@ -91,11 +95,12 @@
# =============================================================================
-# Oracle Connection class using dcoracle
+# Connection class
# =============================================================================
class Connection (Base.Connection):
"""
- Connection class for Oracle databases using the cxoracle DBSIG2 driver.
+ Connection class for Oracle backends using the DCOracle DBSIG2 module.
"""
+
_drivername = 'DCOracle2'
Modified: trunk/gnue-common/src/datasources/drivers/sql/postgres/Base.py
===================================================================
--- trunk/gnue-common/src/datasources/drivers/sql/postgres/Base.py
2005-06-20 09:56:54 UTC (rev 7622)
+++ trunk/gnue-common/src/datasources/drivers/sql/postgres/Base.py
2005-06-20 11:30:37 UTC (rev 7623)
@@ -1,4 +1,4 @@
-# GNU Enterprise Common Library - Generic Postgres DB driver
+# GNU Enterprise Common Library - Generic PostgreSQL database driver
#
# Copyright 2001-2005 Free Software Foundation
#
@@ -21,6 +21,10 @@
#
# $Id$
+"""
+Generic database driver plugin for PostgreSQL backends.
+"""
+
__all__ = ['Connection']
__noplugin__ = True
@@ -30,12 +34,12 @@
# =============================================================================
-# Generic PostgreSQL Connection class
+# Connection class
# =============================================================================
class Connection (DBSIG2.Connection):
"""
- Generic Connection class for PostgreSQL databases.
+ Generic Connection class for PostgreSQL backends.
"""
_rowidField = 'oid'
Modified: trunk/gnue-common/src/datasources/drivers/sql/postgres/Behavior.py
===================================================================
--- trunk/gnue-common/src/datasources/drivers/sql/postgres/Behavior.py
2005-06-20 09:56:54 UTC (rev 7622)
+++ trunk/gnue-common/src/datasources/drivers/sql/postgres/Behavior.py
2005-06-20 11:30:37 UTC (rev 7623)
@@ -1,4 +1,4 @@
-# GNU Enterprise Common Library - PostgreSQL driver - Schema Support
+# GNU Enterprise Common Library - Schema support for PostgreSQL
#
# Copyright 2001-2005 Free Software Foundation
#
@@ -21,17 +21,25 @@
#
# $Id$
+"""
+Schema support plugin for PostgreSQL backends.
+"""
+
import os
from gnue.common.apps import errors
from gnue.common.datasources.drivers import DBSIG2
from gnue.common.datasources import GSchema
+
# =============================================================================
-# Schema support for PostgreSQL backends
+# Behavior class
# =============================================================================
class Behavior (DBSIG2.Behavior):
+ """
+ Behavior class for PostgreSQL backends.
+ """
# ---------------------------------------------------------------------------
# Constructor
Modified: trunk/gnue-common/src/datasources/drivers/sql/postgres/__init__.py
===================================================================
--- trunk/gnue-common/src/datasources/drivers/sql/postgres/__init__.py
2005-06-20 09:56:54 UTC (rev 7622)
+++ trunk/gnue-common/src/datasources/drivers/sql/postgres/__init__.py
2005-06-20 11:30:37 UTC (rev 7623)
@@ -1,4 +1,4 @@
-# GNU Enterprise Common Library - PostgreSQL DB Driver
+# GNU Enterprise Common Library - PostgreSQL database driver plugins
#
# Copyright 2000-2005 Free Software Foundation
#
@@ -22,11 +22,12 @@
# $Id$
"""
-Database driver plugin for PostgreSQL backends.
+Database driver plugins for PostgreSQL backends.
"""
+
# =============================================================================
-# Define aliases
+# Define aliases for this plugin
# =============================================================================
__pluginalias__ = ['pgsql', 'postgresql']
@@ -37,8 +38,11 @@
# =============================================================================
class DriverInfo:
+
name = "PostgreSQL (7.x+)"
+
url = "http://www.postgresql.org/"
+
description = """
PostgreSQL is an free object-relational database, which supports a large part
of SQL-99. It is under continuous development and each release implements
@@ -49,4 +53,5 @@
PostgreSQL is the primary database used by GNUe developers.
"""
+
isfree = True
Modified: trunk/gnue-common/src/datasources/drivers/sql/postgres/psycopg.py
===================================================================
--- trunk/gnue-common/src/datasources/drivers/sql/postgres/psycopg.py
2005-06-20 09:56:54 UTC (rev 7622)
+++ trunk/gnue-common/src/datasources/drivers/sql/postgres/psycopg.py
2005-06-20 11:30:37 UTC (rev 7623)
@@ -1,4 +1,4 @@
-# GNU Enterprise Common Library - Postgres DB driver using psycopg
+# GNU Enterprise Common Library - PostgreSQL database driver using psycopg
#
# Copyright 2001-2005 Free Software Foundation
#
@@ -21,6 +21,10 @@
#
# $Id$
+"""
+Database driver plugin for PostgreSQL backends using the psycopg DBSIG2 module.
+"""
+
__all__ = ('Connection')
from gnue.common.datasources.drivers.sql.postgres import Base
@@ -43,8 +47,11 @@
# =============================================================================
class DriverInfo:
- name = "Psycopg"
+
+ name = "psycopg"
+
url = "http://initd.org/software/initd/psycopg/"
+
doc = """
Description
-----------
@@ -86,11 +93,12 @@
# =============================================================================
-# PostgreSQL Connection class using psycopg
+# Connection class
# =============================================================================
class Connection (Base.Connection):
"""
- Connection class for PostgreSQL databases using the psycopg DBSIG2 driver.
+ Connection class for PostgreSQL backends using the psycopg DBISG2 module.
"""
+
_drivername = 'psycopg'
Modified: trunk/gnue-common/src/datasources/drivers/sql/postgres/pygresql.py
===================================================================
--- trunk/gnue-common/src/datasources/drivers/sql/postgres/pygresql.py
2005-06-20 09:56:54 UTC (rev 7622)
+++ trunk/gnue-common/src/datasources/drivers/sql/postgres/pygresql.py
2005-06-20 11:30:37 UTC (rev 7623)
@@ -1,4 +1,4 @@
-# GNU Enterprise Common Library - Postgres DB driver using PyGreSQL
+# GNU Enterprise Common Library - PostgreSQL database driver using PyGreSQL
#
# Copyright 2001-2005 Free Software Foundation
#
@@ -21,6 +21,11 @@
#
# $Id$
+"""
+Database driver plugin for PostgreSQL backends using the PyGreSQL DBSIG2
+module.
+"""
+
__all__ = ('Connection')
from gnue.common.datasources.drivers.sql.postgres import Base
@@ -43,8 +48,11 @@
# =============================================================================
class DriverInfo:
+
name = "PyGreSQL"
+
url = "http://druid.net/pygresql/"
+
doc = """
Description
-----------
@@ -79,11 +87,12 @@
# =============================================================================
-# PostgreSQL Connection class using PyGreSQL
+# Connection class
# =============================================================================
class Connection (Base.Connection):
"""
- Connection class for PostgreSQL databases using the PyGreSQL DBSIG2 driver.
+ Connection class for PostgreSQL backends using the PyGreSQL DBSIG2 module.
"""
+
_drivername = 'pgdb'
Modified: trunk/gnue-common/src/datasources/drivers/sql/postgres/pypgsql.py
===================================================================
--- trunk/gnue-common/src/datasources/drivers/sql/postgres/pypgsql.py
2005-06-20 09:56:54 UTC (rev 7622)
+++ trunk/gnue-common/src/datasources/drivers/sql/postgres/pypgsql.py
2005-06-20 11:30:37 UTC (rev 7623)
@@ -1,4 +1,4 @@
-# GNU Enterprise Common Library - Postgres DB driver using pyPgSQL
+# GNU Enterprise Common Library - PostgreSQL database driver using pyPgSQL
#
# Copyright 2001-2005 Free Software Foundation
#
@@ -21,6 +21,10 @@
#
# $Id$
+"""
+Database driver plugin for PostgreSQL backends using the pyPgSQL DBSIG2 module.
+"""
+
__all__ = ('Connection')
from gnue.common.datasources.drivers.sql.postgres import Base
@@ -43,8 +47,11 @@
# =============================================================================
class DriverInfo:
+
name = "pyPgSQL"
+
url = "http://pypgsql.sf.net/"
+
doc = """
Description
-----------
@@ -85,13 +92,14 @@
# =============================================================================
-# PostgreSQL Connection class using pyPgSQL
+# Connection class
# =============================================================================
class Connection (Base.Connection):
"""
- Connection class for PostgreSQL databases using the pyPgSQL DBSIG2 driver.
+ Connection class for PostgreSQL backends using the pyPgSQL DBSIG2 module.
"""
+
_drivername = 'pyPgSQL.PgSQL'
_rowidField = None # PyPgSQL doesn't support rowid's!!
_broken_fetchmany = True
Modified: trunk/gnue-common/src/datasources/drivers/sql/sqlite/Behavior.py
===================================================================
--- trunk/gnue-common/src/datasources/drivers/sql/sqlite/Behavior.py
2005-06-20 09:56:54 UTC (rev 7622)
+++ trunk/gnue-common/src/datasources/drivers/sql/sqlite/Behavior.py
2005-06-20 11:30:37 UTC (rev 7623)
@@ -1,4 +1,4 @@
-# GNU Enterprise Common Library - SQLite driver - Schema Support
+# GNU Enterprise Common Library - Schema support for SQLite
#
# Copyright 2001-2005 Free Software Foundation
#
@@ -21,6 +21,10 @@
#
# $Id$
+"""
+Schema support plugin for SQLite.
+"""
+
import re
from gnue.common.apps import errors
@@ -48,6 +52,7 @@
_SQLCODE = re.compile ('\s*SELECT\s+(.*)\s+FROM\s+(\w+).*', re.I)
_CMD = re.compile ('(.*?)\((.*)\)(.*)')
+
# =============================================================================
# Excpetions
# =============================================================================
@@ -64,11 +69,13 @@
# =============================================================================
-# This class implements schema support for SQLite backends
+# Behavior class
# =============================================================================
class Behavior (DBSIG2.Behavior):
"""
+ Behavior class for SQLite backens.
+
Limitations:
- Since SQLite is typeless we cannot derive a 'length' for columns
specified as 'integer' or 'text' without any further information.
Modified: trunk/gnue-common/src/datasources/drivers/sql/sqlite/__init__.py
===================================================================
--- trunk/gnue-common/src/datasources/drivers/sql/sqlite/__init__.py
2005-06-20 09:56:54 UTC (rev 7622)
+++ trunk/gnue-common/src/datasources/drivers/sql/sqlite/__init__.py
2005-06-20 11:30:37 UTC (rev 7623)
@@ -1,4 +1,4 @@
-# GNU Enterprise Common Library - SQLite DB Driver
+# GNU Enterprise Common Library - SQLite database driver plugins
#
# Copyright 2000-2005 Free Software Foundation
#
@@ -22,16 +22,20 @@
# $Id$
"""
-Database driver plugin for SQLite backends.
+Database driver plugins for SQLite backends.
"""
+
# =============================================================================
# Driver info
# =============================================================================
class DriverInfo:
+
name = "SQLite Embedded Database"
+
url = "http://www.sqlite.org/"
+
description = """
SQLite is a C library that implements an embeddable SQL database engine.
Programs that link with the SQLite library can have SQL database access
@@ -40,4 +44,5 @@
SQLite is a great database to use with GNUe for single-user installations
where a self-contained, distributable package is desired.
"""
+
isfree = True
Modified: trunk/gnue-common/src/datasources/drivers/sql/sqlite/pysqlite.py
===================================================================
--- trunk/gnue-common/src/datasources/drivers/sql/sqlite/pysqlite.py
2005-06-20 09:56:54 UTC (rev 7622)
+++ trunk/gnue-common/src/datasources/drivers/sql/sqlite/pysqlite.py
2005-06-20 11:30:37 UTC (rev 7623)
@@ -1,4 +1,4 @@
-# GNU Enterprise Common Library - SQLite DB Driver
+# GNU Enterprise Common Library - SQLite database driver using pysqlite
#
# Copyright 2001-2005 Free Software Foundation
#
@@ -21,6 +21,10 @@
#
# $Id$
+"""
+Database driver plugin for SQLite backends using the pysqlite DBSIG2 module.
+"""
+
__all__ = ['Connection']
from gnue.common.datasources.drivers import DBSIG2
@@ -59,7 +63,7 @@
class DriverInfo:
- name = "PySQLite Driver"
+ name = "pysqlite"
url = "http://pysqlite.sourceforge.net/"
@@ -100,10 +104,13 @@
# =============================================================================
-# SQLite Connection class
+# Connection class
# =============================================================================
class Connection (DBSIG2.Connection):
+ """
+ Connection class for SQLite backends using the pysqlite DBSIG2 module.
+ """
_drivername = 'sqlite'
_behavior = Behavior.Behavior
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [gnue] r7623 - in trunk/gnue-common/src/datasources/drivers: . Base DBSIG2 file other sql sql/interbase sql/maxdb sql/msado sql/mysql sql/oracle sql/postgres sql/sqlite,
reinhard <=