KO
|
EN
gitlite — search
Search
#python
#java
#python3
#arduino
#golang
#machine-learning
#rust
#html
#flask
#javascript
#seismology
#nodejs
sqlite-provider
★ 10
Open GitHub ↗
SQLite3 provider for Vapor
Download README (.md)
Explore Similar Repositories
CSDN
:
论坛项目
Bootstrap
:
PHP 初始化自动加载类
multivariantviewer
:
A JBrowse plugin with a custom variant track for multi-VCF files and optionally plotting LD scores
switch-monitor
:
广东工业大学交换机监控
phalcon-restapi-rain
:
Phalcon Micro Rest Api Framework
// repository documentation
Was this content helpful?
★ 0
(0 ratings)
Select Rating:
★
★
★
★
★
Submit Feedback
Recent Feedback
×
Download README
Do you want to download the
README.md
file for
sqlite-provider
?
Download (.md)
# Vapor SQLite Adds SQLite support to the Vapor web framework. ## Install ```swift import Vapor import VaporSQLite let drop = Droplet() try drop.addProvider(VaporSQLite.Provider.self) ``` ## Config Be sure to have a `sqlite.json` config file in your Config directory, the path is set relatively from the Droplet's working directory ```json { "path": "/path/to/database.sqlite" } ``` ## Raw Queries ```swift let result = try drop.database?.driver.raw("SELECT sqlite_version()") print(result) ``` ## Dependencies ### OS X ```shell brew install sqlite3 ``` ### Linux ```shell sudo apt-get update sudo apt-get install sqlite3 libsqlite3-dev ```