takusen-oracle alternatives and similar packages
Based on the "Database" category.
Alternatively, view takusen-oracle alternatives based on common mentions on social networks and blogs.
-
erd
Translates a plain text description of a relational database schema to a graphical entity-relationship diagram. -
HDBC-session
This repository includes a joined query generator based on typefull relational algebra, and mapping tools between SQL values list and Haskell record type. -
groundhog
This library maps datatypes to a relational model, in a way similar to what ORM libraries do in OOP. See the tutorial https://www.schoolofhaskell.com/user/lykahb/groundhog for introduction -
mysql-simple
A mid-level client library for the MySQL database, intended to be fast and easy to use. -
dbmigrations
DISCONTINUED. A library for the creation, management, and installation of schema updates for relational databases. -
ampersand
This repository contains the source code of the Ampersand compiler. For developing in VS-code, it contains a devcontainer. It contains a Dockerfile for generating a docker image. A commit on the main branch sets of the build street, which creates a new image in the ampersand repository in docker hub. -
hsparql
hsparql includes a DSL to easily create queries, as well as methods to submit those queries to a SPARQL server, returning the results as simple Haskell data structures.
SaaSHub - Software Alternatives and Reviews
* Code Quality Rankings and insights are calculated and provided by Lumnify.
They vary from L1 to L5 with "L5" being the highest.
Do you think we are missing an alternative of takusen-oracle or a related project?
README
Takusen Oracle is an Oracle access library. Like HSQL and HDBC, it supports 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 Oracle 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.
Installing
Prerequisites: GHC >= 7.6.3, Cabal >= 1.16
Using i.e. Writing data access code
There are extensive instructions and examples in the Haddock docs for module Database.Enumerator:
http://hackage.haskell.org/packages/archive/takusen-oracle/0.9.1/doc/html/Database-Enumerator.html
This should give you most, if not all, of the information you need to create a program that uses Takusen.
Here's a little hello-world test case that uses Oracle:
{-# LANGUAGE ScopedTypeVariables #-}
module Main where
import Database.Oracle.Enumerator
import Control.Monad.Trans (liftIO)
main = flip catchDB reportRethrow $
withSession (connect "system" "system" "localhost/XE") (do
let iter (s::String) (_::String) = result s
result <- doQuery (sql "select 'Hello world.' from DUAL") iter ""
liftIO (putStrLn result)
)
If this is Main.hs, then
$ ghc --make Main -o hello
should build a "hello" executable.
Paths, GHCi & runhaskell
Just as with ensuring that your path is correctly set when building Takusen, you must also ensure it is correctly set when building your programs. If it is not correct, then you are likely to see linker errors.
For successful building of the library, you should set Extra-Lib-Dirs
to your Oracle home lib directory.
Oracle gotchas on Windows
Some users have reported linker errors because their Oracle bin contains hsbase.dll, which is an Oracle library related to Heterogenous Services. This DLL overrides GHC's HSbase.dll, and therefore causes linker errors.
If you can control your Oracle client installation then either
- don't choose Heterogenous Services when you install, or re-run the installer and remove it, or
- rename hsbase.dll in Oracle bin.