Sha256: bbc468f3647394b037a6d01b87643f013071a2489b512b99b5a7ff514f55b4a7

Contents?: true

Size: 632 Bytes

Versions: 2

Compression:

Stored size: 632 Bytes

Contents

require 'sqlite3'
Shoes.app :width => 350, :height => 130 do
  db = SQLite3::Database.new "simple-sqlite3.db"
  db.execute "create table t1 (t1key INTEGER PRIMARY KEY,data " \
    "TEXT,num double,timeEnter DATE)"
  db.execute "insert into t1 (data,num) values ('This is sample data',3)"
  db.execute "insert into t1 (data,num) values ('More sample data',6)"
  db.execute "insert into t1 (data,num) values ('Aurélio, Küng, Stärk, Uña, Łuksza',6)"
  db.execute "insert into t1 (data,num) values ('And a little more',9)"
  rows = db.execute "select * from t1"
  rows.each{|k, d, n| para "#{k} : #{d} : #{n}\n"}
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
shoesgem-0.1480.0 shoes/samples/simple-sqlite3.rb
shoesgem-0.1469.0 shoes/samples/simple-sqlite3.rb