Class: Neo4j::Core::Query
- Inherits:
-
Object
- Object
- Neo4j::Core::Query
- Defined in:
- lib/patches/db/neo4j.rb
Instance Method Summary collapse
- #response ⇒ Object (also: #response_with_miniprofiler)
- #response_without_miniprofiler ⇒ Object
Instance Method Details
#response ⇒ Object Also known as: response_with_miniprofiler
6 7 8 9 10 11 12 13 |
# File 'lib/patches/db/neo4j.rb', line 6 def response return @response if @response start = Process.clock_gettime(Process::CLOCK_MONOTONIC) rval = response_without_miniprofiler elapsed_time = SqlPatches.elapsed_time(start) Rack::MiniProfiler.record_sql(to_cypher, elapsed_time) rval end |
#response_without_miniprofiler ⇒ Object
4 |
# File 'lib/patches/db/neo4j.rb', line 4 alias_method :response_without_miniprofiler, :response |