mirror of
https://github.com/groue/GRDB.swift
synced 2026-11-27 04:14:21 +00:00
README.md
This commit is contained in:
1 parent
17d7c28f70
commit
2e760e41af
1 file changed
+8
-6
@@ -3,14 +3,20 @@ GRDB
|
||||
|
||||
A sqlite3 wrapper for Swift 2.
|
||||
|
||||
Goals:
|
||||
## Goals:
|
||||
|
||||
- [RAII](https://en.wikipedia.org/wiki/Resource_Acquisition_Is_Initialization)
|
||||
- Leverage the Swift standard library (errors, generators, etc.)
|
||||
- Foster SQL
|
||||
- Focus on rows, not on tables.
|
||||
|
||||
Usage (work in progress):
|
||||
|
||||
## Inspirations:
|
||||
|
||||
- [ccgus/FMDB](https://github.com/ccgus/fmdb)
|
||||
|
||||
|
||||
## Usage (work in progress):
|
||||
|
||||
```swift
|
||||
let dbQueue = try DatabaseQueue(path: "/tmp/GRDB.sqlite")
|
||||
@@ -62,7 +68,3 @@ let names = try dbQueue.inDatabase { db in
|
||||
}
|
||||
|
||||
```
|
||||
|
||||
Inspirations:
|
||||
|
||||
- [ccgus/FMDB](https://github.com/ccgus/fmdb)
|
||||
Reference in new issue
Block a user