haskelldb-hsql-sqlite3 0.10 → 1.0.0
raw patch · 4 files changed
+62/−11 lines, 4 filesdep −haskell98dep ~basedep ~haskelldbdep ~haskelldb-hsqlnew-component:exe:DBDirect-hsql-sqlite3new-uploader
Dependencies removed: haskell98
Dependency ranges changed: base, haskelldb, haskelldb-hsql
Files
- DBDirect.hs +5/−0
- Database/HaskellDB/HSQL/SQLite3.hs +8/−2
- LICENSE +31/−0
- haskelldb-hsql-sqlite3.cabal +18/−9
+ DBDirect.hs view
@@ -0,0 +1,5 @@+import Database.HaskellDB.HSQL.SQLite3+import Database.HaskellDB.DBDirect++main :: IO ()+main = dbdirect driver
Database/HaskellDB/HSQL/SQLite3.hs view
@@ -34,10 +34,16 @@ sqliteConnect opts = hsqlConnect SQLite.generator (SQLite3.connect (filepath opts) (mode opts)) +options :: [(String, String)]+options =+ ("filepath", "File path") :+ ("mode", "r/w/a/rw for read/(over)write/append/random access") :+ []+ sqliteConnectOpts :: MonadIO m => [(String,String)] -> (Database -> m a) -> m a sqliteConnectOpts opts f = do- [a,b] <- getOptions ["filepath","mode"] opts+ [a,b] <- getAnnotatedOptions options opts m <- readIOMode b sqliteConnect (SQLiteOptions {filepath = a, mode = m}) f@@ -57,4 +63,4 @@ -- "filepath", "mode" -- The possible values of the "mode" option are "r", "w", "rw" driver :: DriverInterface-driver = defaultdriver {connect = sqliteConnectOpts}+driver = defaultdriver {connect = sqliteConnectOpts, requiredOptions = options}
+ LICENSE view
@@ -0,0 +1,31 @@+Copyright (c) 1999 Daan Leijen, daan@cs.uu.nl+Copyright (c) 2003-2004 The HaskellDB development team+All rights reserved.++Redistribution and use in source and binary forms, with or without+modification, are permitted provided that the following conditions are+met:++ * Redistributions of source code must retain the above copyright+ notice, this list of conditions and the following disclaimer.++ * Redistributions in binary form must reproduce the above+ copyright notice, this list of conditions and the following+ disclaimer in the documentation and/or other materials provided+ with the distribution.++ * Neither the names of the copyright holders nor the names of the+ contributors may be used to endorse or promote products derived+ from this software without specific prior written permission.++THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS+"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT+LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR+A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT+OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,+SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT+LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,+DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY+THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT+(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE+OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
haskelldb-hsql-sqlite3.cabal view
@@ -1,15 +1,24 @@ Name: haskelldb-hsql-sqlite3-Version: 0.10+Version: 1.0.0+Cabal-version: >= 1.6+Build-type: Simple Copyright: The authors+Homepage: https://github.com/m4dc4p/haskelldb Maintainer: haskelldb-users@lists.sourceforge.net Author: Daan Leijen, Conny Andersson, Martin Andersson, Mary Bergman, Victor Blomqvist, Bjorn Bringert, Anders Hockersten, Torbjorn Martin, Jeremy Shaw License: BSD3-build-depends: haskell98, base, mtl, haskelldb, haskelldb-hsql, hsql, hsql-sqlite3-Extensions: ExistentialQuantification,- OverlappingInstances,- UndecidableInstances,- MultiParamTypeClasses-Synopsis: HaskellDB support for the HSQL SQLite driver.-Exposed-Modules:+License-file: LICENSE+Synopsis: HaskellDB support for the HSQL SQLite3 driver.+Category: Database++Library+ Build-depends: base >= 3 && < 5, mtl, haskelldb==0.11, haskelldb-hsql==0.11, hsql, hsql-sqlite3+ Exposed-Modules: Database.HaskellDB.HSQL.SQLite3-ghc-options: -O2++Executable DBDirect-hsql-sqlite3+ Main-is: DBDirect.hs++Source-repository head+ Type: git+ Location: https://github.com/m4dc4p/haskelldb