Sha256: 23a7e6317c40657a763b350df75b9c69f0e0cc515b3618349c74e65dca2229c5

Contents?: true

Size: 496 Bytes

Versions: 1

Compression:

Stored size: 496 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 )"


has_value = contains? 'TEST_TABLE', { :value => 10 }
puts "Intitally has value 10:  #{has_value}"

puts "Inserting"
insert( 'TEST_TABLE', { :id => 0, :value => 10 } )

has_value = contains? 'TEST_TABLE', { :value => 10 }
puts "Has value 10:  #{has_value}"


execute "DROP TABLE TEST_TABLE"


Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
marjoree-0.0.9 ./examples/contains_example.rb