class Sequel::JDBC::Postgres::Dataset::PGArrayConverter

  1. lib/sequel/adapters/jdbc/postgresql.rb
Parent: Dataset

Handle conversions of PostgreSQL array instances

Methods

Public Class

  1. new

Public Instance

  1. call

Public Class methods

new (meth)

Set the method that will return the correct conversion proc for elements of this array.

[show source]
# File lib/sequel/adapters/jdbc/postgresql.rb, line 118
def initialize(meth)
  @conversion_proc_method = meth
  @conversion_proc = nil
end

Public Instance methods

call (v)

Convert Java::OrgPostgresqlJdbc4::Jdbc4Array to ruby arrays

[show source]
# File lib/sequel/adapters/jdbc/postgresql.rb, line 124
def call(v)
  _pg_array(v.array)
end