require 'postgres'conn = PGconn.connect("",5432, "", "", "testdb")conn.exec("create table rtest ( number integer default 0 );")conn.exec("insert into rtest values ( 99 )")res = conn.query("select * from rtest")# res id [["99"]]