require 'sldb'

#
# use the factory method to specify your database class
#
DB =
  SLDB::class {
    schema 'create table t ( a, b, c )'
    path 'sldb'
  }

#
# create and instance and use it - it will be created and initialized with the
# schema on the first use
#
db = DB::new

db.transaction do
  db.execute 'insert into t values (0,1,2)'
  db.execute('select * from t'){|tuple| p tuple}
end

