Skip to content

Instantly share code, notes, and snippets.

@bttf bttf/lein repl Secret
Created Apr 21, 2013

Embed
What would you like to do?
sqlKorma
(use 'korma.db)
(defdb db (sqlite3 {:db "dal.db" :make-pool? true}))
(use 'korma.core)
(defentity users)
(select users)
Output:
user=> (select users)
Failure to execute query with SQL:
SELECT "users".* FROM "users" :: []
SQLException:
Message: [SQLITE_NOTADB] File opened that is not a database file (file is encrypted or is not a database)
SQLState: null
Error Code: 0
SQLException [SQLITE_NOTADB] File opened that is not a database file (file is encrypted or is not a database) org.sqlite.DB.newSQLException (DB.java:383)
Proof of data:
sqlite> select * from users;
1|admin|admin
sqlite>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.