Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/norio-nomura/dlsqlite
Use `dlopen()`ed `libsqlite3` in Swift
https://github.com/norio-nomura/dlsqlite
Last synced: 1 day ago
JSON representation
Use `dlopen()`ed `libsqlite3` in Swift
- Host: GitHub
- URL: https://github.com/norio-nomura/dlsqlite
- Owner: norio-nomura
- License: mit
- Created: 2017-02-22T02:56:23.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2017-02-22T07:35:20.000Z (almost 8 years ago)
- Last Synced: 2025-01-19T01:45:47.932Z (5 days ago)
- Language: Swift
- Homepage:
- Size: 13.7 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# DLSQLite
[![MIT License](http://img.shields.io/badge/license-MIT-blue.svg?style=flat)](LICENSE)
[![CI Status](http://img.shields.io/travis/norio-nomura/DLSQLite.svg?style=flat)](https://travis-ci.org/norio-nomura/DLSQLite)`DLSQLite` is a [SQLite](http://www.sqlite.org) wrapper written in Swift 3.
`DLSQLite` can be used in Playground without having to build the framework.## Requirements
* Swift 3.0.2 or later
* SQLite### SQLite Installation
#### macOS
Pre-installed `libsqlite3.dylib` can be used by `DLSQLite`.#### Linux
```
$ sudo apt-get install libsqlite3-dev
```## Setup
### Playground
Copy [DLSQLite.swift](https://raw.githubusercontent.com/norio-nomura/DLSQLite/master/Sources/DLSQLite.swift) into `Sources` folder in your Playground.### Swift REPL (Swift 3.1)
```
$ TOOLCHAINS=swift PRODUCE_DYLIB=1 swift build
$ TOOLCHAINS=swift swift -I .build/debug -L .build/debug -lDLSQLite
Welcome to Apple Swift version 3.1-dev (LLVM a7c680da51, Clang df9f12fda6, Swift bafde97c26). Type :help for assistance.
1> import Foundation # on Linux
2> import DLSQLite
3> SQLite.libVersion
$R0: String = "3.14.0"
```## Author
Norio Nomura
## License
DLSQLite is available under the MIT license. See the LICENSE file for more info.