From phd at phdru.name Wed Aug 9 08:20:15 2023 From: phd at phdru.name (Oleg Broytman) Date: Wed, 9 Aug 2023 15:20:15 +0300 Subject: [DB-SIG] SQLObject 3.10.2 Message-ID: Hello! I'm pleased to announce version 3.10.2, a minor feature release and the second bugfix release of branch 3.10 of SQLObject. What's new in SQLObject ======================= The contributor for this release is Igor Yudytskiy. Thanks! Minor features -------------- * Class ``Alias`` grows a method ``.select()`` to match ``SQLObject.select()``. Bug fixes --------- * Fixed a bug in ``SQLRelatedJoin`` in the case where the table joins with itself; in the resulting SQL two instances of the table must use different aliases. Thanks to Igor Yudytskiy for providing an elaborated bug report. For a more complete list, please see the news: http://sqlobject.org/News.html What is SQLObject ================= SQLObject is a free and open-source (LGPL) Python 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/MariaDB (with a number of DB API drivers: ``MySQLdb``, ``mysqlclient``, ``mysql-connector``, ``PyMySQL``, ``mariadb``), PostgreSQL (``psycopg2``, ``PyGreSQL``, partially ``pg8000`` and ``py-postgresql``), SQLite (builtin ``sqlite``, ``pysqlite``, partially ``supersqlite``); connections to other backends - Firebird, Sybase, MSSQL and MaxDB (also known as SAPDB) - are less debugged). Python 2.7 or 3.4+ is required. Where is SQLObject ================== Site: http://sqlobject.org Download: https://pypi.org/project/SQLObject/3.10.2a0.dev20221222/ News and changes: http://sqlobject.org/News.html StackOverflow: https://stackoverflow.com/questions/tagged/sqlobject Mailing lists: https://sourceforge.net/p/sqlobject/mailman/ Development: http://sqlobject.org/devel/ Developer Guide: http://sqlobject.org/DeveloperGuide.html Example ======= Install:: $ pip install sqlobject Create a simple class that wraps a table:: >>> from sqlobject import * >>> >>> sqlhub.processConnection = connectionForURI('sqlite:/:memory:') >>> >>> class Person(SQLObject): ... fname = StringCol() ... mi = StringCol(length=1, default=None) ... lname = StringCol() ... >>> Person.createTable() Use the object:: >>> p = Person(fname="John", lname="Doe") >>> p >>> p.fname 'John' >>> p.mi = 'Q' >>> p2 = Person.get(1) >>> p2 >>> p is p2 True Queries:: >>> p3 = Person.selectBy(lname="Doe")[0] >>> p3 >>> pc = Person.select(Person.q.lname=="Doe").count() >>> pc 1 Oleg. -- Oleg Broytman https://phdru.name/ phd at phdru.name Programmers don't die, they just GOSUB without RETURN. From anthony.tuininga at gmail.com Wed Aug 16 15:33:24 2023 From: anthony.tuininga at gmail.com (Anthony Tuininga) Date: Wed, 16 Aug 2023 13:33:24 -0600 Subject: [DB-SIG] python-oracledb 1.4.0 Message-ID: What is python-oracledb? python-oracledb is a Python extension module that enables access to Oracle Database for Python and conforms to the Python database API 2.0 specifications with a number of enhancements. This module replaces cx_Oracle. Where do I get it? https://pypi.org/project/oracledb/1.4.0/ The easiest method to install/upgrade python-oracledb is via pip as in python -m pip install oracledb --upgrade What's new? This release addresses a large number of smaller enhancements and bug fixes. See the full release notes for all of the details: https://python-oracledb.readthedocs.io/en/latest/release_notes.html#oracledb-1-4-0-august-2023 Please provide any feedback via GitHub issues: https://github.com/oracle/ python-oracledb/issues or discussions: https://github.com/oracle/python- oracledb/discussions -------------- next part -------------- An HTML attachment was scrubbed... URL: