Sha256: 762db9a31ebcc184ec54834fb4b39789a8a5018f0dfc454dd533bbcda359adb2
Contents?: true
Size: 564 Bytes
Versions: 9
Compression:
Stored size: 564 Bytes
Contents
require 'swift/db/postgres' require 'swift/adapter/sql' module Swift class Adapter class Postgres < Sql def initialize options = {} super Swift::DB::Postgres.new(options) end def returning? true end def field_type attribute case attribute when Type::IO then 'bytea' else super end end def tables execute('select tablename from pg_tables where schemaname = current_schema').map(&:values).flatten end end # Postgres end # Adapter end # Swift
Version data entries
9 entries across 9 versions & 1 rubygems