Sha256: f9f42702df531b40ddd651593c169541407a568b3dcc559a437dfac1ebee9c04
Contents?: true
Size: 470 Bytes
Versions: 5
Compression:
Stored size: 470 Bytes
Contents
# -*- ruby -*- require 'ysql' conn = YSQL.connect(:dbname => 'test' ) $stderr.puts '---', RUBY_DESCRIPTION, YSQL.version_string(true ), "Server version: #{conn.server_version}", "Client version: #{YSQL.library_version}", '---' result = conn.exec( "SELECT * from pg_stat_activity" ) $stderr.puts %Q{Expected this to return: ["select * from pg_stat_activity"]} p result.field_values( 'current_query' )
Version data entries
5 entries across 5 versions & 1 rubygems