0.0
No commit activity in last 3 years
No release in over 3 years
RecordX-SQLite is an object relational mapper primarily designed for updating records in bulk.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Runtime

~> 0.3, >= 0.3.3
~> 0.5, >= 0.5.4
~> 1.4, >= 1.4.1
 Project Readme

Introducing the RecordX-SQLite gem

Example

require 'recordx_sqlite'

rs = RecordxSqlite.new('/tmp/headers2.db', table: 'headers')
r = rs.all.first
r.fruit =  'apple'

The above example updates the column fruit in the 1st record of the database with the value apple.

Notes:

  • The database, table, and records must exist
  • Whenever an attribute is updated it updates the corresponding database record automatically
  • The unique primary key must be called id for the record update to work.

Resources

recordx sqlite sqlite3 orm recordx_sqlite