DBStruct is a class that, like Struct, provides a convenient way to create subclasses with named fields that can be accessed via the usual Ruby setters and getters. Unlike Struct, their contents are stored in a SQLite3 database. In addition, each subclass also provides access to the database via an interface that closely mimics a Ruby Hash, including support for enumeration.

Required Ruby Version

>= 3.0.0

Authors

Chris Reuter

Versions

  1. 0.1.0 September 11, 2024 (84.5 KB)

Requirements

Sequel

Pushed by

SHA 256 checksum