This library provides a Swift interface to the SQLite C library. It is cross-platform compatible and currently builds for iOS, iOS simulator, and macOS.
The Database
class exposes interfaces to prepare Statement
objects or directly execute SQL statements.
The Statement
class allows binding objects and structs conforming to DatabaseBindable
to SQL query parameters marked with '?'. It also exposes a Cursor
struct which is used to iterate rows.
This library provides a very limited Swift interface to the PLPlot C scientific plotting library. It currently only builds for macOS, as PLPlot depends on Cairo and other libraries.
It exposes the drawHistrogram
function to render timeseries data as a histogram image.
This library depends on plplot.dylib installed by homebrew. If you have homebrew installed, run the following command to install plplot.
brew update && brew install plplot
You can install homebrew from its website.
This playground includes a sample SQLite database containing weather measurements taken from the NOAA Climate Data Online service.