The Takusen package
Takusen is a DBMS access library. It has a backend for Oracle on Unix, Linux or Windows via OCI, and a stub to test the library without any database. The infrastructure and the stub let one interface natively with other databases. The distinguished feature of Takusen is processing query results using a left-fold enumerator. The user supplies an iteratee function, which receives rows one-at-a-time from the result-set. The number of the arguments to the iteratee is the number of the columns in the result-set, plus the seed. Each column in the result-set has its own Haskell type. The latter could be a Maybe type if the particular iteratee wishes to process NULLs. The benefits are: more convenient and intuitive enumeration, iteration, and accumulation (see tests for examples); the retrieved data are not merely strings but have Haskell types: Int, Float, Date, etc.; buffer preallocation; pre-fetching; support for both enumerators and cursors, proper handling of all errors including various IO errors. No unsafe operations are used.
Properties
| 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 |
| License | BSD3 |
| Copyright | 2003-2007, Alistair Bayley, Oleg Kiselyov |
| Author | Alistair Bayley, Oleg Kiselyov |
| Maintainer | alistair@abayley.org, oleg@pobox.com |
| Stability | experimental |
| Category | Database |
| Home page | http://darcs.haskell.org/takusen |
| Upload date | Mon Feb 18 22:50:29 UTC 2008 |
| Uploaded by | DonaldStewart |
| Built on | ghc-6.12 |
| Build failure | ghc-6.10 (log), ghc-6.8 (log) |
Modules
- Control
- Exception
- Database
- Database.Enumerator
- ODBC
- Oracle
- PostgreSQL
- Sqlite
- Stub
- Database.Util
- Foreign
Downloads
- Takusen-0.7.tar.gz (Cabal source package)
- package description (included in the package)