From phd at phdru.name Wed Jun 1 12:01:53 2016
From: phd at phdru.name (Oleg Broytman)
Date: Wed, 1 Jun 2016 18:01:53 +0200
Subject: [DB-SIG] SQLObject 3.0.0
Message-ID: <20160601160153.GA13503@phdru.name>
Hello!
I'm pleased to announce version 3.0.0, the first stable release of branch
3.0 of SQLObject.
What's new in SQLObject
=======================
Features
--------
* Support for Python 2 and Python 3 with one codebase!
(Python version >= 3.4 currently required.)
Minor features
--------------
* PyDispatcher (>=2.0.4) was made an external dependency.
Development
-----------
* Source code was made flake8-clean.
Documentation
-------------
* Documentation is published at http://sqlobject.readthedocs.org/ in
Sphinx format.
Contributors for this release are Ian Cordasco, Neil Muller,
Lukasz Dobrzanski, Gregor Horvath, Nathan Edwards.
For a more complete list, please see the news:
http://sqlobject.org/News.html
What is SQLObject
=================
SQLObject is an object-relational mapper. Your database tables are described
as classes, and rows are instances of those classes. SQLObject is meant to be
easy to use and quick to get started with.
SQLObject supports a number of backends: MySQL, PostgreSQL, SQLite,
Firebird, Sybase, MSSQL and MaxDB (also known as SAPDB).
Python 2.6, 2.7 or 3.4+ is required.
Where is SQLObject
==================
Site:
http://sqlobject.org
Development:
http://sqlobject.org/devel/
Mailing list:
https://lists.sourceforge.net/mailman/listinfo/sqlobject-discuss
Archives:
http://news.gmane.org/gmane.comp.python.sqlobject
Download:
https://pypi.python.org/pypi/SQLObject/3.0.0
News and changes:
http://sqlobject.org/News.html
Oleg.
--
Oleg Broytman http://phdru.name/ phd at phdru.name
Programmers don't die, they just GOSUB without RETURN.
From mlatif at i2cinc.com Fri Jun 3 04:35:22 2016
From: mlatif at i2cinc.com (Muhammad Amir Latif)
Date: Fri, 3 Jun 2016 13:35:22 +0500
Subject: [DB-SIG] Need help regarding connection establish with db informix
Message-ID: <6af6ee58-3643-fc5d-ad47-23a296d6f258@i2cinc.com>
--
Best Regards,
*************************************
Muhammad Amir Latif
ASE- SCM
i2c Inc.
1300 Island Drive, Suite 105
Redwood City, CA 94065
24x7 SCM:+1 650.593.5400, ext. [4500]
Fax: +1 650.593.5402
www.i2cinc.com
*************************************
CONFIDENTIALITY CAUTION
This communication (including any accompanying documents) is intended
only for the use of the addressee(s) and contains information that is
PRIVILEGED AND CONFIDENTIAL. Unauthorized reading, dissemination,
distribution, or copying of this communication is prohibited. If you
have received this communication in error, please notify us immediately
by e-mail, telephone, or fax, and promptly destroy the original
communication. Thank you for your cooperation.
PSave a tree...pls don't print this e-mailunless necessary
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
From jianxin.ren at nokia.com Mon Jun 13 21:59:07 2016
From: jianxin.ren at nokia.com (Ren, Jianxin (Nokia - CN/Hangzhou))
Date: Tue, 14 Jun 2016 01:59:07 +0000
Subject: [DB-SIG] PEP 249
Message-ID:
Hi,
About cursor.execute or executemany for between ... and clause, could you please provide me a demo representing arguments pass
Thanks!
Brs
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
From praveenchappa2050 at gmail.com Tue Jun 14 05:48:11 2016
From: praveenchappa2050 at gmail.com (Praveen Kumar)
Date: Tue, 14 Jun 2016 15:18:11 +0530
Subject: [DB-SIG] How to set connection timezone in DBAPI-presto connection
Message-ID:
Hi,
I am using pyHive(DB-API) to connect to presto session and i want to set
connection timezone by default its not picking server timezone instead
local jvm timezone is picked by the connection object.Also need some info
on Session_props.Any help can be appreciated.
Thanks in advance.
Regards,
Praveen Kumar
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
From sigurd at jervelund.com Fri Jun 24 10:31:10 2016
From: sigurd at jervelund.com (Sigurd Jervelund Hansen)
Date: Fri, 24 Jun 2016 16:31:10 +0200
Subject: [DB-SIG] PEP 249
Message-ID:
Hi
I'm using the PEP249 as a reference, and I've stumbled upon some
contradicting documentation in footnote 1.
If I attempt to connect to a database using the example I get the following
error:
>>> connect(host=dbHost,user=dbUser,password=dbPassword,database=dbName)
Traceback (most recent call last):
File "", line 1, in
File "/usr/local/lib/python2.7/dist-packages/MySQLdb/__init__.py", line
81, in Connect
return Connection(*args, **kwargs)
File "/usr/local/lib/python2.7/dist-packages/MySQLdb/connections.py",
line 193, in __init__
super(Connection, self).__init__(*args, **kwargs2)
TypeError: 'database' is an invalid keyword argument for this function
Changing parameter database to db:
>>> connect(host=dbHost,user=dbUser,password=dbPassword,db=dbName)
Traceback (most recent call last):
File "", line 1, in
File "/usr/local/lib/python2.7/dist-packages/MySQLdb/__init__.py", line
81, in Connect
return Connection(*args, **kwargs)
File "/usr/local/lib/python2.7/dist-packages/MySQLdb/connections.py",
line 193, in __init__
super(Connection, self).__init__(*args, **kwargs2)
TypeError: 'password' is an invalid keyword argument for this function
Changing parameter password to passwd:
>>> connect(host=dbHost,user=dbUser,passwd=dbPassword,db=dbName)
<_mysql.connection open to 'mysql-host' at 217e660>
In short: Parameter password should be passwd and database should be db.
Direct link to footnote :
https://www.python.org/dev/peps/pep-0249/#id40
Link to stackoverflow with working example:
http://stackoverflow.com/questions/372885/how-do-i-connect-to-a-mysql-database-in-python
Best regards
Sigurd J. Hansen
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
From mal at egenix.com Mon Jun 27 07:51:11 2016
From: mal at egenix.com (M.-A. Lemburg)
Date: Mon, 27 Jun 2016 13:51:11 +0200
Subject: [DB-SIG] PEP 249
In-Reply-To:
References:
Message-ID: <5771132F.1000101@egenix.com>
On 24.06.2016 16:31, Sigurd Jervelund Hansen wrote:
> Hi
>
> I'm using the PEP249 as a reference, and I've stumbled upon some
> contradicting documentation in footnote 1.
>
> If I attempt to connect to a database using the example I get the following
> error:
>
>>>> connect(host=dbHost,user=dbUser,password=dbPassword,database=dbName)
> Traceback (most recent call last):
> File "", line 1, in
> File "/usr/local/lib/python2.7/dist-packages/MySQLdb/__init__.py", line
> 81, in Connect
> return Connection(*args, **kwargs)
> File "/usr/local/lib/python2.7/dist-packages/MySQLdb/connections.py",
> line 193, in __init__
> super(Connection, self).__init__(*args, **kwargs2)
> TypeError: 'database' is an invalid keyword argument for this function
>
> Changing parameter database to db:
>
>>>> connect(host=dbHost,user=dbUser,password=dbPassword,db=dbName)
> Traceback (most recent call last):
> File "", line 1, in
> File "/usr/local/lib/python2.7/dist-packages/MySQLdb/__init__.py", line
> 81, in Connect
> return Connection(*args, **kwargs)
> File "/usr/local/lib/python2.7/dist-packages/MySQLdb/connections.py",
> line 193, in __init__
> super(Connection, self).__init__(*args, **kwargs2)
> TypeError: 'password' is an invalid keyword argument for this function
>
> Changing parameter password to passwd:
>
>>>> connect(host=dbHost,user=dbUser,passwd=dbPassword,db=dbName)
> <_mysql.connection open to 'mysql-host' at 217e660>
>
> In short: Parameter password should be passwd and database should be db.
The DB-API footnote only provides a guideline on how to name
the parameters. In this case the module author obviously
chose different spellings.
> Direct link to footnote :
> https://www.python.org/dev/peps/pep-0249/#id40
"""
[1]
As a guideline the connection constructor parameters should be
implemented as keyword parameters for more intuitive use and follow this
order of parameters:
...
"""
> Link to stackoverflow with working example:
> http://stackoverflow.com/questions/372885/how-do-i-connect-to-a-mysql-database-in-python
--
Marc-Andre Lemburg
eGenix.com
Professional Python Services directly from the Experts (#1, Jun 27 2016)
>>> Python Projects, Coaching and Consulting ... http://www.egenix.com/
>>> Python Database Interfaces ... http://products.egenix.com/
>>> Plone/Zope Database Interfaces ... http://zope.egenix.com/
________________________________________________________________________
::: We implement business ideas - efficiently in both time and costs :::
eGenix.com Software, Skills and Services GmbH Pastor-Loeh-Str.48
D-40764 Langenfeld, Germany. CEO Dipl.-Math. Marc-Andre Lemburg
Registered at Amtsgericht Duesseldorf: HRB 46611
http://www.egenix.com/company/contact/
http://www.malemburg.com/
From songofacandy at gmail.com Tue Jun 28 05:02:06 2016
From: songofacandy at gmail.com (INADA Naoki)
Date: Tue, 28 Jun 2016 18:02:06 +0900
Subject: [DB-SIG] PEP 249
In-Reply-To:
References:
Message-ID:
I'll support it in next version of mysqlclient.
On Fri, Jun 24, 2016 at 11:31 PM, Sigurd Jervelund Hansen
wrote:
> Hi
>
> I'm using the PEP249 as a reference, and I've stumbled upon some
> contradicting documentation in footnote 1.
>
> If I attempt to connect to a database using the example I get the following
> error:
>
>>>> connect(host=dbHost,user=dbUser,password=dbPassword,database=dbName)
> Traceback (most recent call last):
> File "", line 1, in
> File "/usr/local/lib/python2.7/dist-packages/MySQLdb/__init__.py", line
> 81, in Connect
> return Connection(*args, **kwargs)
> File "/usr/local/lib/python2.7/dist-packages/MySQLdb/connections.py", line
> 193, in __init__
> super(Connection, self).__init__(*args, **kwargs2)
> TypeError: 'database' is an invalid keyword argument for this function
>
> Changing parameter database to db:
>
>>>> connect(host=dbHost,user=dbUser,password=dbPassword,db=dbName)
> Traceback (most recent call last):
> File "", line 1, in
> File "/usr/local/lib/python2.7/dist-packages/MySQLdb/__init__.py", line
> 81, in Connect
> return Connection(*args, **kwargs)
> File "/usr/local/lib/python2.7/dist-packages/MySQLdb/connections.py", line
> 193, in __init__
> super(Connection, self).__init__(*args, **kwargs2)
> TypeError: 'password' is an invalid keyword argument for this function
>
> Changing parameter password to passwd:
>
>>>> connect(host=dbHost,user=dbUser,passwd=dbPassword,db=dbName)
> <_mysql.connection open to 'mysql-host' at 217e660>
>
> In short: Parameter password should be passwd and database should be db.
>
> Direct link to footnote: https://www.python.org/dev/peps/pep-0249/#id40
> Link to stackoverflow with working example:
> http://stackoverflow.com/questions/372885/how-do-i-connect-to-a-mysql-database-in-python
>
> Best regards
> Sigurd J. Hansen
>
> _______________________________________________
> DB-SIG maillist - DB-SIG at python.org
> https://mail.python.org/mailman/listinfo/db-sig
>
--
INADA Naoki