Sha256: f9f42702df531b40ddd651593c169541407a568b3dcc559a437dfac1ebee9c04
Contents?: true
Size: 470 Bytes
Versions: 3
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
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
yugabytedb-ysql-0.5 | sample/minimal-testcase.rb |
yugabytedb-ysql-0.4 | sample/minimal-testcase.rb |
yugabytedb-ysql-0.3 | sample/minimal-testcase.rb |