Sha256: e7b7c7c6a96fa2be88603ea1ab4b60eec590a6d1ffeafc945bc18461fc90029e
Contents?: true
Size: 562 Bytes
Versions: 1
Compression:
Stored size: 562 Bytes
Contents
require 'marjoree' include Marjoree connect( 'EMT_LOCAL', 'sa', '' ) Kernel.at_exit { disconnect } puts execute "CREATE TABLE TEST_TABLE( id int NOT NULL, value int NOT NULL )" results = select( 'TEST_TABLE' ) puts "Initial Num result rows: #{results.count}" insert( 'TEST_TABLE', { :id => 0, :value => 10 } ) results = select( 'TEST_TABLE' ) puts "Num result rows: #{results.count}" puts results insert( 'TEST_TABLE', { :id => 1, :value => 20 } ) results = select( 'TEST_TABLE' ) puts results execute "DROP TABLE TEST_TABLE"
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
marjoree-0.0.9 | ./examples/select_example.rb |