Tarantool
Tarantool is a client library written in Swift for Tarantool.
Dependencies
OSX:
brew install openssl
brew link openssl --force
Linux:
apt-get install libssl-dev
Usage
This example assumes that you followed the 2.1. Starting Tarantool and making your first database
import Tarantool
do {
let tarantool = try TarantoolConnection()
var result = try tarantool.select("tester", keys: [3])
print(result)
// prints [[3, 'Length', 93]]
result = try tarantool.insert("tester", tuple: [42, "Answer to the Ultimate Question of Life, The Universe, and Everything"])
print(result)
// prints [[42, "Answer to the Ultimate Question of Life, The Universe, and Everything"]]
} catch let exception {
print("exception: \(exception)")
}
Installation
import PackageDescription
let package = Package(
dependencies: [
.Package(url: "https://github.com/antonmes/Tarantool.git", majorVersion: 0, minor: 7)
]
)
Community
Join us on Slack.
License
Tarantool is released under the MIT license. See LICENSE for details.