From anthony.tuininga at gmail.com Mon Dec 2 20:09:14 2019 From: anthony.tuininga at gmail.com (Anthony Tuininga) Date: Mon, 2 Dec 2019 18:09:14 -0700 Subject: [DB-SIG] cx_Oracle 7.3 Message-ID: What is cx_Oracle? cx_Oracle is a Python extension module that enables access to Oracle Database for Python 3.x and 2.x and conforms to the Python database API 2.0 specifications with a number of enhancements. Where do I get it? https://oracle.github.io/python-cx_Oracle The easiest method to install/upgrade cx_Oracle is via pip as in python -m pip install cx_Oracle --upgrade What's new? See my colleague's blog post for an overview: https://blogs.oracle.com/opal/python-cx_oracle-73-for-oracle-database-is-on-pypi See the full release notes for all of the details: https://cx-oracle.readthedocs.io/en/latest/release_notes.html#version-7-3-december-2019 Please provide any feedback via GitHub issues ( https://github.com/oracle/python-cx_Oracle/issues). -------------- next part -------------- An HTML attachment was scrubbed... URL: From phd at phdru.name Sat Dec 7 13:11:19 2019 From: phd at phdru.name (Oleg Broytman) Date: Sat, 7 Dec 2019 19:11:19 +0100 Subject: [DB-SIG] SQLObject 3.8.0 Message-ID: <20191207181119.g4tkltoi6gyn3nj6@phdru.name> Hello! I'm pleased to announce version 3.8.0, the first stable release of branch 3.8 of SQLObject. What's new in SQLObject ======================= Features -------- * Add driver ``supersqlite``. Not all tests are passing so the driver isn't added to the list of default drivers. Minor features -------------- * Improve sqlrepr'ing ``ALL/ANY/SOME()``: always put the expression at the right side of the comparison operation. Bug fixes --------- * Fixed a bug in cascade deletion/nullification. * Fixed a bug in ``PostgresConnection.columnsFromSchema``: PostgreSQL 12 removed outdated catalog attribute ``pg_catalog.pg_attrdef.adsrc``. * Fixed a bug working with microseconds in Time columns. CI -- * Run tests with Python 3.8 at Travis CI. Contributors for this release are Andrew Trusty, Marco Sirabella and darix. 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.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 Download: https://pypi.org/project/SQLObject/3.8.0 News and changes: http://sqlobject.org/News.html StackOverflow: https://stackoverflow.com/questions/tagged/sqlobject Example ======= 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.