require "mysql"
class MY_DB
def initialize
@dbh = Mysql.real_connect("localhost", "testuser", "testpass", "traffic")
end
def close_tbl
@dbh.close
end
def load_table
@dbh.query("INSERT INTO test(id,
name,
dataSourceId,
tmcId,
type,
status,
speed,
volume,
longVolume,
occupancy,
lastUpdated)
VALUES
(1,2,3,4,5,6,7,8,9,10,11)")
end
end |