https://github.com/krzyzanowskim/kitura-session-kuery
Kitura-Session store using Swift-Kuery (SQL database abstraction layer) as the backing store
https://github.com/krzyzanowskim/kitura-session-kuery
Last synced: 7 months ago
JSON representation
Kitura-Session store using Swift-Kuery (SQL database abstraction layer) as the backing store
- Host: GitHub
- URL: https://github.com/krzyzanowskim/kitura-session-kuery
- Owner: krzyzanowskim
- License: mit
- Created: 2018-01-21T14:05:21.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2020-09-07T16:28:58.000Z (about 5 years ago)
- Last Synced: 2024-04-14T07:11:18.179Z (over 1 year ago)
- Language: Swift
- Homepage: https://krzyzanowskim.com
- Size: 3.91 KB
- Stars: 6
- Watchers: 2
- Forks: 3
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Kitura-Session-Kuery
Kitura-Session store using [Swift-Kuery](https://github.com/IBM-Swift/Swift-Kuery) as the backing store



## Summary
[Kitura-Session](https://github.com/IBM-Swift/Kitura-Session) store using [Swift-Kuery](https://github.com/IBM-Swift/Swift-Kuery) as the backing store
## Table of Contents
* [Swift version](#swift-version)
* [API](#api)
* [License](#license)
## Swift version
The latest version of Kitura-Session-Kuery requires **Swift 4.0.3**. You can download this version of the Swift binaries by following this [link](https://swift.org/download/). Compatibility with other Swift versions is not guaranteed.
## API
In order to use Kuery as session store, create an instance of `KueryStore`, and pass it to `Session` constructor:
```swift
import KituraSession
import KituraSessionKuery
let pool = ...
guard let connection = pool.getConnection() else {
// Error
}
let kueryStore = KueryStore(connection: kueryConnection)
let session = Session(secret: , store: kueryStore)
```
## License
This library is licensed under MIT. Full license text is available in [LICENSE](LICENSE).