In addition to the officially supported drivers, you can find their Community alternatives. Besides Java, .NET, JavaScript, Go, and Python drivers, Neo4j Community offers support for Ruby, PHP, and Perl. Links to their relevant resources are provided below. Members of the each programming language community have invested a lot of time and love to develop each one of the community drivers for Neo4j
Haskell Relational Record (HRR)尻叩き担当の山本です。この記事では、HRR のリリースについて説明します。 なお、これは Haskell Advent Calendar 2014 の25日目の記事です。 HRR とは何か? HRRは、日比野さんが中心となって開発が進められている関係代数ライブラリです。Haskellで式を書くと、それがSQL文に変換され、データベースに問い合わせた結果が Haskell のレコードになります。以下のような特長があります。 抽象的:高レベルな式で表現すると、SQLが生成されます。対応している SQLサーバは、DB2、ProsgreSQL、SQLite、MySQL、MicroSoft SQL Server および OracleSQL です。 型安全:HRRの式を書いたHaskellのコードがコンパイルできれば、必ず正しいSQL文が生
Maps and tuples are useful data types for modeling relational operations. For example, suppose we have the following table, indexed by the Id column: | Id | First Name | Last Name | |----|------------|-----------| | 0 | Gabriel | Gonzalez | | 1 | Oscar | Boykin | | 2 | Edgar | Codd | We can model that as a Map where the key is the Id column and the value is a tuple of FirstName and LastName: impor
Haskell Advent Calendar 2013 の19日目のエントリーです。 Haskell で SQL の複雑な検索式を記述するための、Relational Record というライブラリ(以下HRR)(https://github.com/khibino/haskell-relational-record) を作ったので紹介します。このライブラリを使うことで、検索式を部品化し、単純な検索式を組合せて、より複雑な検索式を組み立てることができます。 HRR は HaskellDB (http://hackage.haskell.org/package/haskelldb) を参考にした関係代数ベースのライブラリですが、カラム名の問題、外部結合、集約操作、Placeholderの問題点を克服する形で再構成しました。以下に順番に説明していきたいと思います。 結合について SQLの結合
I’m very pleased to announce a preview release of esqueleto, a bare bones, type-safe EDSL for SQL queries. On the first part of this blog post I’ll talk about persistent and HaskellDB. You may jump right into where I talk about esqueleto if you want, though. Background Yesod is very modular, and each of its components may be used separately. You may also take libraries from other web frameworks. H
最近 Yesod を弄っているが、Yesod で使ってるやつ (Database.Persistent) を使って、普通に DB 操作したいな、と。 sqlite と mongodb をやってみる。 github にあげた分 → https://github.com/rf0444/haskell-db とりあえず自分の環境 (Mac) で runhaskell で確認した。 cabal はめんどそうなのでまた今度。 sqlite 編 Yesod の Persistent の通りにやればまあ動く。 構成を Yesod のプロジェクトっぽくしたかったので、yesod init した後の Model.hs を持ってきて、Yesod 関係のものを書き換える。 {-# LANGUAGE TypeFamilies, TemplateHaskell, FlexibleContexts, GADTs #-
HaskellでDBを操作するならHDBCを使うのが定石だとは思うんですが、やりたいことが簡単でかつSQLiteで十分だったので、Database.SQLiteを使ってみました。 使い方 SQL文を発行する 最初にsqlite3本体と、cabalでsqliteパッケージをインストールする必要があります。 使い方は簡単で、openConnectionで接続で開き、execStatementでSQL文を発行して、結果を取得します。execStatementの返値は多相で、Either String [[Row String]] 、Either String [[Row Value]]、Either String [[Row Value]]のいずれかを選べます。 Either String [[Row String]] ならLeftがエラーで、Rightなら列名と値のタプルのリストのリストのリス
I’ve been using HaskellDB in production for about two years. I decided that I’d write a proper, up-to-date description, or tutorial, about what it is, how it works, what it can do, and my experience using it in projects.1What is HaskellDB?HaskellDB is a database interface library for Haskell which featuresexplicit declaration of schema of entities and fields,an EDSL2—a Query monad—for making queri
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く