This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "SQLObject development repository".
The branch, master has been updated
discards 64610cfa6d704c21a01fe699e5b1128743109940 (commit)
discards 35173138349b7274b1f4d01d8ccafee1d1983368 (commit)
via edb3970a31c93033b7e12b0f40b7cda52b7c3b6d (commit)
via 6ac086505501cb878066577072be951539db4b2d (commit)
This update added new revisions after undoing existing revisions. That is
to say, the old revision is not a strict subset of the new revision. This
situation occurs when you --force push a change and generate a repository
containing something like this:
* -- * -- B -- O -- O -- O (64610cfa6d704c21a01fe699e5b1128743109940)
\
N -- N -- N (edb3970a31c93033b7e12b0f40b7cda52b7c3b6d)
When this happens we assume that you've already had alert emails for all
of the O revisions, and so we here report only the revisions in the N
branch from the common base, B.
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
http://sourceforge.net/p/sqlobject/sqlobject/ci/edb3970a31c93033b7e12b0f40b7cda52b7c3b6d
commit edb3970a31c93033b7e12b0f40b7cda52b7c3b6d
Author: Oleg Broytman <ph...@ph...>
Date: Mon Jan 13 21:10:20 2025 +0300
Feat(Pg): Extend default list of drivers
The list is now `psycopg`, `psycopg2`, `pygresql`.
diff --git a/docs/News.rst b/docs/News.rst
index 3cba166..53e959c 100644
--- a/docs/News.rst
+++ b/docs/News.rst
@@ -14,6 +14,9 @@ Drivers
* Extended default list of MySQL drivers to ``mysqldb``, ``mysqlclient``,
``mysql-connector``, ``mysql-connector-python``, ``pymysql``.
+* Extended default list of PostgreSQL drivers to ``psycopg``, ``psycopg2``,
+ ``pygresql``.
+
SQLObject 3.12.0.post2
======================
diff --git a/docs/SQLObject.rst b/docs/SQLObject.rst
index 8f08941..9f46fa3 100644
--- a/docs/SQLObject.rst
+++ b/docs/SQLObject.rst
@@ -1852,7 +1852,7 @@ parameter in DB URI or PostgresConnection that can be a comma-separated
list of driver names. Possible drivers are: ``psycopg``, ``psycopg2``,
``pygresql``, ``pypostgresql``, ``pg8000``,
``pyodbc``, ``pypyodbc`` or ``odbc`` (try ``pyodbc`` and
-``pypyodbc``). Default is ``psycopg``.
+``pypyodbc``). Default are ``psycopg``, ``psycopg2``, ``pygresql``.
Connection-specific parameters are: ``sslmode``, ``unicodeCols``,
``schema``, ``charset``.
diff --git a/sqlobject/postgres/pgconnection.py b/sqlobject/postgres/pgconnection.py
index bb76afa..fb24f95 100644
--- a/sqlobject/postgres/pgconnection.py
+++ b/sqlobject/postgres/pgconnection.py
@@ -57,7 +57,7 @@ class PostgresConnection(DBAPI):
def __init__(self, dsn=None, host=None, port=None, db=None,
user=None, password=None, **kw):
- drivers = kw.pop('driver', None) or 'psycopg'
+ drivers = kw.pop('driver', None) or 'psycopg,psycopg2,pygresql'
for driver in drivers.split(','):
driver = driver.strip()
if not driver:
http://sourceforge.net/p/sqlobject/sqlobject/ci/6ac086505501cb878066577072be951539db4b2d
commit 6ac086505501cb878066577072be951539db4b2d
Author: Oleg Broytman <ph...@ph...>
Date: Mon Jan 13 21:05:30 2025 +0300
Feat(MySQL): Extend default list of drivers
The list is now `mysqldb`, `mysqlclient`,
`mysql-connector`, `mysql-connector-python`, `pymysql`.
diff --git a/docs/News.rst b/docs/News.rst
index 83a60ba..3cba166 100644
--- a/docs/News.rst
+++ b/docs/News.rst
@@ -8,6 +8,12 @@ News
SQLObject (development)
=======================
+Drivers
+-------
+
+* Extended default list of MySQL drivers to ``mysqldb``, ``mysqlclient``,
+ ``mysql-connector``, ``mysql-connector-python``, ``pymysql``.
+
SQLObject 3.12.0.post2
======================
diff --git a/docs/SQLObject.rst b/docs/SQLObject.rst
index c6bbd17..8f08941 100644
--- a/docs/SQLObject.rst
+++ b/docs/SQLObject.rst
@@ -1804,7 +1804,8 @@ define the backend using ``sqlmeta.createSQL``.
Supported drivers are ``mysqldb``, ``connector``, ``pymysql``, ``cymysql``,
``mariadb``, ``pyodbc``, ``pypyodbc`` or ``odbc`` (try ``pyodbc`` and
-``pypyodbc``); defualt is ``mysqldb``.
+``pypyodbc``); default are ``mysqldb``, ``mysqlclient``,
+``mysql-connector``, ``mysql-connector-python``, ``pymysql``.
Keyword argument ``conv`` allows to pass a list of custom converters.
diff --git a/sqlobject/mysql/mysqlconnection.py b/sqlobject/mysql/mysqlconnection.py
index 557adb9..8ba4a99 100644
--- a/sqlobject/mysql/mysqlconnection.py
+++ b/sqlobject/mysql/mysqlconnection.py
@@ -39,7 +39,8 @@ class MySQLConnection(DBAPI):
odbc_keywords = ('Server', 'Port', 'UID', 'Password', 'Database')
def __init__(self, db, user, password='', host='localhost', port=0, **kw):
- drivers = kw.pop('driver', None) or 'mysqldb'
+ drivers = kw.pop('driver', None) or 'mysqldb,mysqlclient,' + \
+ 'mysql-connector,mysql-connector-python,pymysql'
for driver in drivers.split(','):
driver = driver.strip().lower()
if not driver:
-----------------------------------------------------------------------
Summary of changes:
docs/News.rst | 18 +++++++++---------
1 file changed, 9 insertions(+), 9 deletions(-)
hooks/post-receive
--
SQLObject development repository
|