public
Description: Ruby bindings for the SQLite3 embedded database
Homepage: http://sqlite-ruby.rubyforge.org/sqlite3/
Clone URL: git://github.com/jamis/sqlite3-ruby.git
jamis (author)
Fri May 30 12:50:43 -0700 2008
commit  86d3d598af767218642c707f07708bb49e430c1b
tree    9422dc871986eef224af4e86f676c42d2c888494
parent  be7b89093c1871b8d285cf46d48fe5d3c234de46 parent  c5a5a92d5fa3ac7b56c75e7324aec8d2eb603b64
name age message
file .gitignore Loading commit data...
file CHANGELOG.rdoc
file ChangeLog.cvs Tue Feb 15 07:01:48 -0800 2005 ChangeLog is dynamically generated again. [jamis]
file LICENSE Fri May 02 21:42:18 -0700 2008 use a more recent email address [jamis]
file README.rdoc Fri May 30 12:20:37 -0700 2008 rename README to README.rdoc. Also update the ... [jamis]
file Rakefile Fri May 30 12:35:58 -0700 2008 make sure the Makefile gets cleaned up via rake... [jamis]
directory doc/ Thu May 15 14:33:57 -0700 2008 doc fix from rubyforge [#16451] [Rob Holland]
directory ext/
directory lib/
file setup.rb Sun Jan 09 07:04:16 -0800 2005 Changed layout to support tagging and branching [jamis]
file sqlite3-ruby-win32.gemspec Fri May 30 12:20:37 -0700 2008 rename README to README.rdoc. Also update the ... [jamis]
file sqlite3-ruby.gemspec Fri May 30 12:20:37 -0700 2008 rename README to README.rdoc. Also update the ... [jamis]
directory test/ Mon May 19 12:27:38 -0700 2008 Add test for defaults from Daniel Rodríguez Tro... [Rob Holland]
README.rdoc

SQLite3/Ruby Interface

This module allows Ruby programs to interface with the SQLite3 database engine (www.sqlite.org). You must have the SQLite engine installed in order to build this module.

Note that this module is NOT compatible with SQLite 2.x.

Compilation and Installation

Simply do the following, after installing SQLite3:

  ruby setup.rb config
  ruby setup.rb setup
  ruby setup.rb install

Alternatively, you can download and install the RubyGem package for SQLite3/Ruby (you must have RubyGems and SQLite3 installed, first):

  gem install sqlite3-ruby

If you have sqlite3 installed in a non-standard location, you can specify the location of the include and lib files by doing:

  gem install sqlite3-ruby -- --with-sqlite3-include=/opt/local/include \
     --with-sqlite3-lib=/opt/local/lib

Also, the gem ships with the C source-code pre-built, so (as of version 1.1.1) you no longer need to have SWIG installed. However, if you have SWIG installed and you want to generate the C file yourself, you can specify the —with-swig option.

Usage

For help figuring out the SQLite3/Ruby interface, check out the FAQ. It includes examples of usage. If you have any questions that you feel should be address in the FAQ, please send them to jamis@37signals.com

Source Code

The source repository is accessible via git:

  git clone git://github.com/jamis/sqlite3-ruby.git

Contact Information

The project page is rubyforge.org/projects/sqlite-ruby. There, you can find links to mailing lists and forums that you can use to discuss this library. Additionally, there are trackers for submitting bugs and feature requests. Feel free to use them!