Class: PG::Connection
- Inherits:
-
Object
- Object
- PG::Connection
- Defined in:
- lib/active_record/connection_adapters/pglite_shims/pg.rb
Class Method Summary collapse
Class Method Details
.conndefaults_hash ⇒ Object
17 |
# File 'lib/active_record/connection_adapters/pglite_shims/pg.rb', line 17 def conndefaults_hash = {} |
.quote_ident(str) ⇒ Object
19 20 21 22 23 24 25 26 27 |
# File 'lib/active_record/connection_adapters/pglite_shims/pg.rb', line 19 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 |