daithiocrualaoich / scala-sqlite-example

Simple SQLite example usage in Scala 2.10/Slick.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Scala SQLite

Example of using SQLite from Scala with the Slick library and the Xerial SQLiteJDBC driver.

Does not require SQLite to be installed.

Run the example using:

./sbt012 run

A SQLite database called test.db will be created. It can be examined using sqlite3 for example:

$ sqlite3 test.db
sqlite> select * from test_table;
1|It was many and many a year ago,
2|In a kingdom by the sea,
3|That a maiden there lived whom you may know
4|By the name of Annabel Lee;
5|And this maiden she lived with no other thought
6|Than to love and be loved by me.

About

Simple SQLite example usage in Scala 2.10/Slick.


Languages

Language:Scala 96.6%Language:Shell 3.4%