Sha256: de1199214312bfcf43ba98fe2cf08fdb9ac5a034a351558646f3ee248932647f
Contents?: true
Size: 456 Bytes
Versions: 1
Compression:
Stored size: 456 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 )" initial_count = count( 'TEST_TABLE' ) puts "Intial Count: #{initial_count}" insert( 'TEST_TABLE', { :id => 0, :value => 10 } ) count_after_insert = count( 'TEST_TABLE' ) puts "Count after insert: #{count_after_insert}" execute "DROP TABLE TEST_TABLE"
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
marjoree-0.0.9 | ./examples/count_and_insert_example.rb |