Sha256: 7678b51520250f1127f200e4ce5285e880400df58aa0ca8a5a7d8c49de169b8a
Contents?: true
Size: 712 Bytes
Versions: 1
Compression:
Stored size: 712 Bytes
Contents
# frozen_string_literal: true # pg gem stub module PG PQTRANS_IDLE = 0 # (connection idle) PQTRANS_ACTIVE = 1 # (command in progress) PQTRANS_INTRANS = 2 # (idle, within transaction block) PQTRANS_INERROR = 3 # (idle, within failed transaction) PQTRANS_UNKNOWN = 4 # (cannot determine status) class Error < StandardError; end class ConnectionBad < Error; end class Connection class << self def quote_ident(str) str = str.to_s return '""' if str.empty? if str =~ /[^a-zA-Z_0-9]/ || str =~ /^[0-9]/ '"' + str.gsub('"', '""') + '"' else str end end end end # Just a stub for now class SimpleDecoder end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
wasmify-rails-0.2.0 | lib/active_record/connection_adapters/pglite_shims/pg.rb |