Class: ActiveRecord::ConnectionAdapters::PostgreSQLAdapter
- Inherits:
-
Object
- Object
- ActiveRecord::ConnectionAdapters::PostgreSQLAdapter
- Defined in:
- lib/tasks/db_mock.rb
Instance Method Summary collapse
- #clear_cache! ⇒ Object
- #escape(s) ⇒ Object
- #execute(sql, name = nil) ⇒ Object
- #quote_string(s) ⇒ Object
- #table_exists?(name) ⇒ Boolean
Instance Method Details
#clear_cache! ⇒ Object
12 13 |
# File 'lib/tasks/db_mock.rb', line 12 def clear_cache! end |
#escape(s) ⇒ Object
18 19 20 |
# File 'lib/tasks/db_mock.rb', line 18 def escape(s) return PG::Connection.quote_ident s end |
#execute(sql, name = nil) ⇒ Object
6 7 8 |
# File 'lib/tasks/db_mock.rb', line 6 def execute(sql, name = nil) $tmp_to_run.append sql end |
#quote_string(s) ⇒ Object
14 15 16 17 |
# File 'lib/tasks/db_mock.rb', line 14 def quote_string s # hack to prevent double-quoting when setting default return s end |
#table_exists?(name) ⇒ Boolean
9 10 11 |
# File 'lib/tasks/db_mock.rb', line 9 def table_exists?(name) false end |