github.com/qutheory/vapor-sqlite

SQLite3 provider for Vapor


Keywords
deprecated
License
MIT

Documentation

Vapor SQLite

Adds SQLite support to the Vapor web framework.

Install

import Vapor
import VaporSQLite

let sqlite = try VaporSQLite.Provider(path: "/path/to/database.sqlite")

let drop = Droplet(providers: [sqlite])

Raw Queries

let result = try! sql.driver.raw("SELECT sqlite_version()")
print(result)

Dependencies

OS X

brew install sqlite3 libsqlite3-dev

Linux

sudo apt-get update
sudo apt-get install sqlite3 libsqlite3-dev