talira

sqlite3-ruby

Ruby bindings for the SQLite3 embedded database

open sourceBSD-3-Clausefree

sqlite3-ruby, the sqlite3 gem, lets Ruby programs open and query SQLite databases: SQLite3::Database runs SQL with bound parameters and returns rows, Statement prepares queries and ResultSet steps through results, and it can load SQLite extensions. Since version 2.5 it ships precompiled native gems with SQLite bundled for Linux (glibc and musl), macOS and Windows, so installing it needs no compiler; it can also build against the system's SQLite or a drop-in replacement. It's maintained by the Sparkle Motion team that also maintains Nokogiri.

Problems it solves

  • use a SQLite database from my Ruby script
  • install the sqlite3 gem without compiling native extensions
  • load a SQLite extension from Ruby

Features

  • Database, Statement and ResultSet APIs
  • bound parameters
  • precompiled native gems with SQLite bundled
  • builds against system SQLite or drop-in replacements
  • loads SQLite extensions