summaryrefslogtreecommitdiff
path: root/databases/py-sqlite2/Makefile
AgeCommit message (Collapse)AuthorFilesLines
2018-07-20Recursive revbump from textproc/icu-62.1ryoon1-2/+2
2018-07-03extend PYTHON_VERSIONS_ for Python 3.7adam1-2/+2
2018-04-14revbump after icu updateadam1-1/+2
2018-04-04databases/py-sqlite2: Update to 2.8.3.fhajny1-5/+4
Version 2.8.3 ------------- - Fixed bug where cursor.description was an emtpy tuple instead of None for non-SELECT statements Version 2.8.2 ------------- - Make sure pysqlite compiles with Visual Studio, which does not support C99 - Switch to sqlite3_open_v2. The flags parameter is now exposed. You can use it to modify the behaviour of the opened database connection, for example opening a database file in read-only mode or enable URI mode. Version 2.8.1 ------------- BUG FIXES - Fixed multiple refcount problems. IMPROVEMENTS - Added versionchanged about changed transaction behaviour wrt DDL statements to documentation. - I was informed by Roger Binns that FTS5 is not stable yet. The amalgamation is now built with FTS3 and FTS4 instead. Version 2.8.0 ------------- NEW FEATURES - No new features, but tons of bugfixes. These mean that things now work that didn't before: - Transactional DDL now works - You can use SAVEPOINTs now BUILD PROCESS - Python 2.7.x is now required. If trying to use it with Python 3, print a useful error message. Integrated all fixes from the sqlite3 module in Python 2.7.10. MAJOR IMPROVEMENTS - Completety got rid of statement parsing. We now use SQLite functions to determine if a statement modifies the database or not. If a statement modifies the database, then we implicitly start a transaction. For backwards compatibility reasons, we do NOT implicitly start a transaction if we encounter a DDL statement. You can, however, now have transactional DDL if you want to: cur = con.cursor() cur.execute("begin") cur.execute("create table foo(bar)") con.rollback() This also means that people can now finally use SAVEPOINTS. - Use sqlite3_get_autocommit() to determine if we are within a transaction instead of trying to be smart. - Switch to v2 statement API. This simplified the code and will increase stability. MINOR IMPROVEMENTS - You can use unicode strings as index for Row objects. BUGFIXES - Fixed a regression: statements should not be reset after a commit. GENERAL CLEANUP AND DEPRECATIONS - Since december 2005, row_factory is a feature of the Connection class instead of the Cursor class. - DEPRECATE converters and adapters. - DEPRECATE text_factory. - Remove compatibility workarounds for old Python versions. - Remove workarounds for old SQLite versions. - Remove apsw related code. Version 2.7.0 ------------- NEW FEATURES - The limit functionality of SQLite is now wrapped. BUILD PROCESS - Instead of fts3, build fts5 extension when using amalgamation. - use pkg-config for finding SQLite if available - Removed the download/unpacking of SQLite amalgamation files. IMPROVEMENTS - Use toc.db file from the SQLite web site and a custom script to make sure that we have all integer constants mapped to Python. - Use Travis CI - Added Trove classifier to make sure Python 3 users do not accidentally try to install it. BUGFIXES - Fix for parsing fractional second part of timestamps. - Fixed bug where when using converters, empty strings ended up as None on the Python side. - SQLite can cope with text with embedded NUL. We can now, too. - many others
2017-11-30Revbump after textproc/icu updateadam1-2/+2
2017-09-18revbump for requiring ICU 59.xmaya1-2/+2
2017-09-04Update some URLs.wiz1-3/+3
2017-09-04Comment out dead sites.wiz1-3/+3
2017-04-22Revbump after icu updateadam1-2/+2
2017-01-01Add python-3.6 to incompatible versions.wiz1-2/+2
2016-12-04Recursive revbump from textproc/icu 58.1ryoon1-2/+2
2016-07-09Remove python33: adapt all packages that refer to it.wiz1-2/+2
2016-04-11Recursive revbump from textproc/icu 57.1ryoon1-2/+2
2015-12-05Extend PYTHON_VERSIONS_INCOMPATIBLE to 35adam1-2/+2
2015-10-10Recursive revbump from textproc/icuryoon1-2/+2
2015-04-06Revbump after updating textproc/icuadam1-2/+2
2014-10-07Revbump after updating libwebp and icuadam1-2/+2
2014-05-09Mark packages that are not ready for python-3.3 also not ready for 3.4,wiz1-2/+2
until proven otherwise.
2014-04-09recursive bump from icu shlib major bump.obache1-2/+2
2014-01-25Use .PHONY correctly.wiz1-3/+5
2013-10-19Revbump after updating textproc/icuadam1-2/+2
2013-05-09Massive revbump after updating graphics/ilmbase, graphics/openexr, textproc/icu.adam1-2/+2
2013-02-21Add explanations to DESCR for sqlite packages because it is quitegdt1-2/+2
boggling that, e.g., py-sqlite2 is a wrapper for sqlite3.
2013-01-26Revbump after graphics/jpeg and textproc/icuadam1-2/+2
2012-10-02Drop superfluous PKG_DESTDIR_SUPPORT, "user-destdir" is default these days.asau1-3/+1
2012-04-27Recursive bump from icu shlib major bumped to 49.obache1-2/+2
2012-04-15Reset maintainer, developer has left the buildingwiz1-2/+2
2012-04-08Remove python24 and all traces of it from pkgsrc.wiz1-7/+1
Remove devel/py-ctypes (only needed by and supporting python24). Remove PYTHON_VERSIONS_ACCEPTED and PYTHON_VERSIONS_INCOMPATIBLE lines that just mirror defaults now. Miscellaneous cleanup while editing all these files.
2011-06-10recursive bump from textproc/icu shlib major bump.obache1-1/+2
2011-05-16Changes 2.6.3:adam1-4/+4
Bug fixes.
2011-01-27Use distutils.mk instead of extension.mk, so that egg file is installed.gdt1-4/+3
2010-10-02back conditional PLIST for python<2.5, it was lost at updated to 2.6.0.obache1-1/+7
2010-09-16Changes 2.6.0:adam1-15/+5
No release notes available.
2009-07-09update to 2.5.5drochner1-7/+4
changes: many bugfixes and compatibility fixes The 2.5.0 version in pkgsrc was broken: >>> from pysqlite2 import dbapi2 Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/usr/pkg/lib/python2.5/site-packages/pysqlite2/dbapi2.py", line 27, in <module> from pysqlite2._sqlite import * ImportError: /usr/pkg/lib/python2.5/site-packages/pysqlite2/_sqlite.so: Undefined PLT symbol "sqlite3_enable_load_extension" (symnum = 158)
2008-11-10Update to 2.5.0a:wiz1-4/+6
Mostly documentation changes.
2008-09-21The self test put testdb on current directory, cd ${WRKDIR} first.obache1-2/+2
2008-09-10Fix typo.wiz1-2/+2
2008-09-10Be slightly more defensive in case an unsupported Python version isjoerg1-2/+3
requested.
2008-09-10Don't try to build and install the Python 2.5+ tests on 2.3 and 2.4 tojoerg1-2/+13
unbreak PLIST for those versions. Bump revision.
2008-09-06Found a new homepage, and an even newer version, including changelogs:wiz1-5/+5
2.5.0: - Windows binaries are now cross-built using mingw on Linux - import various fixes from Python 2.6 version - Connection has new method iterdump() that allows you to create a script file that can be used to clone a database - the docs are now built using Sphinx and were imported from Python 2.6's sqlite3 module - Connection.enable_load_extension(enabled) to allow/disallow extension loading. Allows you to use fulltext search extension, for example ;-) - Give the remaining C functions used in multiple .c source files the pysqlite_ prefix. - Release GIL during sqlite3_prepare() calls for better concurrency. - Automatically download the SQLite amalgamation when building statically. 2.4.1: - Made unicode strings for the database parameter in connect() work again - Removed bad defaults from setup.cfg 2.4.0: - Implemented context managers. pysqlite's connections can now be used as context managers with Python 2.5 or later: from __future__ import with_statement from pysqlite2 import dbapi2 as sqlite con = sqlite.connect(":memory:") con.execute("create table person (id integer primary key, firstname varchar unique)") # Successful, con.commit() is called automatically afterwards with con: con.execute("insert into person(firstname) values (?)", ("Joe",)) # con.rollback() is called after the with block finishes with an exception, the # exception is still raised and must be catched try: with con: con.execute("insert into person(firstname) values (?)", ("Joe",)) except sqlite.IntegrityError: print "couldn't add Joe twice" - pysqlite connections can now be created from APSW connections. This enables users to use APSW functionality in applications using the DB-API from pysqlite: from pysqlite2 import dbapi2 as sqlite import apsw apsw_con = apsw.Connection(":memory:") apsw_con.createscalarfunction("times_two", lambda x: 2*x, 1) # Create pysqlite connection from APSW connection con = sqlite.connect(apsw_con) result = con.execute("select times_two(15)").fetchone()[0] assert result == 30 con.close() Caveat: This will only work if both pysqlite and APSW are dynamically linked against the same SQLite shared library. Otherwise you will experience a segfault. - Fixed shuffled docstrings for fetchXXX methods. - Workaround for SQLite 3.5.x versions which apparently return NULL for "no-operation" statements. - Disable the test for rollback detection on old SQLite versions. This prevents test failures on systems that ship outdated SQLite libraries like MacOS X. - Implemented set_progress_handler for progress callbacks from SQLite. This is particularly useful to update GUIs during long-running queries. Thanks to exarkun for the original patch.
2008-09-06Update to 2.4.1, changes undocumented.wiz1-4/+4
2008-06-12Add DESTDIR support.joerg1-1/+3
2008-04-25Update PYTHON_VERSIONS_COMPATIBLEjoerg1-2/+1
- assume that Python 2.4 and 2.5 are compatible and allow checking for fallout. - remove PYTHON_VERSIONS_COMPATIBLE that are obsoleted by the 2.3+ default. Modify the others to deal with the removals.
2008-04-11Switch from PYTHON_VERSIONS_ACCEPTED= to PYTHON_VERSIONS_INCOMPATIBLE= (and ↵abs1-2/+2
enable 25)
2007-11-19The self-test requires the package to be installed, and this is not therillig1-2/+2
case with the standard do-test target.
2007-08-13update to 2.3.5drochner1-4/+4
changes: -pysqlite is now easy_install-able -misc bugfixes -Allow the size parameter for fetchmany() for better DB-API compliance -Allow a static build of pysqlite using the SQLite amalgamation -improve concurrency -Using mappings and sequences as parameters works now -Performance optimizations
2007-01-20Update to 2.3.3:wiz1-4/+4
- self->statement was not checked while fetching data, which could lead to crashes if you used the pysqlite API in unusual ways. Closing the cursor and continuing to fetch data was enough. - Converters are stored in a converters dictionary. The converter name is uppercased first. The old upper-casing algorithm was wrong and was replaced by a simple call to the Python string's upper() method instead. - Applied patch by Glyph Lefkowitz that fixes the problem with subsequent SQLITE_SCHEMA errors. - Improvement to the row type: rows can now be iterated over and have a keys() method. This improves compatibility with both tuple and dict a lot. - A bugfix for the subsecond resolution in timestamps. - Corrected the way the flags PARSE_DECLTYPES and PARSE_COLNAMES are checked for. Now they work as documented. - gcc on Linux sucks. It exports all symbols by default in shared libraries, so if symbols are not unique it can lead to problems with symbol lookup. pysqlite used to crash under Apache when mod_cache was enabled because both modules had the symbol cache_init. I fixed this by applying the prefix pysqlite_ almost everywhere. Sigh.
2007-01-13Needs Python 2.3+joerg1-1/+2
2007-01-11add a "test" target againdrochner1-1/+4
2007-01-10update to 2.3.2drochner1-14/+4
This is a major update (since 2.0.7), involving an API rework add a bl3 file