mirror of
https://github.com/SrIzan10/starters.git
synced 2026-05-01 11:05:16 +00:00
10 lines
97 B
Ruby
10 lines
97 B
Ruby
require 'pg'
|
|
|
|
conn=PG.connect()
|
|
|
|
res = conn.exec("SELECT now()")
|
|
|
|
res.each{ |row|
|
|
puts row
|
|
}
|