log query

This commit is contained in:
Roberto Alsina 2024-05-15 20:35:26 -03:00
parent 1733aa40df
commit e4c44dcae1

View File

@ -200,6 +200,7 @@ class Handler
datos = [] of Tuple(Int32, String) datos = [] of Tuple(Int32, String)
DB.open("postgres://#{USER}:#{PASS}@10.61.0.1:5432/nombres") do |cursor| DB.open("postgres://#{USER}:#{PASS}@10.61.0.1:5432/nombres") do |cursor|
cursor.query sql do |result_set| cursor.query sql do |result_set|
puts "loop"
result_set.each do result_set.each do
valor = result_set.read(Int32) valor = result_set.read(Int32)
nombre = result_set.read(String) nombre = result_set.read(String)