The Takusen package


Takusen is a DBMS access library. Like HSQL and HDBC, we support arbitrary SQL statements (currently strings, extensible to anything that can be converted to a string).

Takusen's unique selling point is safety and efficiency. We statically ensure all acquired database resources - such as cursors, connections, and statement handles - are released, exactly once, at predictable times. Takusen can avoid loading the whole result set in memory, and so can handle queries returning millions of rows in constant space. Takusen also supports automatic marshalling and unmarshalling of results and query parameters. These benefits come from the design of query result processing around a left-fold enumerator.

Currently we fully support ODBC, Oracle, Sqlite, and PostgreSQL.


Versions 0.7, 0.8, 0.8.1, 0.8.2, 0.8.3, 0.8.4, 0.8.5, 0.8.6, 0.8.7
Dependencies base, mtl, old-time, time [details]
License BSD3
Copyright 2003-2008, Alistair Bayley, Oleg Kiselyov
Author Alistair Bayley, Oleg Kiselyov
Category Database
Home page
Uploaded Fri Jul 11 10:11:42 UTC 2008 by AlistairBayley
Distributions NixOS:0.8.7
Downloads 2709 total (21 in the last 30 days)
1 []
Status Docs uploaded by user
Build status unknown [no reports yet]
Hackage Matrix CI




odbcODBC backendDisabledAutomatic
oracleOracle OCI backendDisabledAutomatic
postgresPostgreSQL backendDisabledAutomatic
sqliteSQLite3 backendDisabledAutomatic

Use -f <flag> to enable a flag, or -f -<flag> to disable that flag. More info


Maintainer's Corner

For package maintainers and hackage trustees