Skip to content

Instantly share code, notes, and snippets.

View larste's full-sized avatar

Lars Steen Risom larste

View GitHub Profile
@larste
larste / gist:3744758
Created September 18, 2012 18:12
Join multiple tables with different columns
SELECT i.*,
n.title,
n.url,
'NULL' as description
FROM items i JOIN news n ON n.item_id = i.id
UNION ALL
SELECT i.*,
j.title,
j.url,
'NULL' as description
@larste
larste / DB Evelutions
Last active December 23, 2015 19:39
How to add Sqlite Support in Play 2.2.0
Add support for db evolutions:
Download the sqlite-dialect from here: https://github.com/gwenn/sqlite-dialect
Compile it to a jar file.
Add the jar file the app/lib folder.