Class: DumpDatabase
- Inherits:
-
Object
- Object
- DumpDatabase
- Includes:
- Neo4jBolt
- Defined in:
- src/ruby/dump-anmeldungen.rb
Instance Method Summary collapse
Instance Method Details
#run ⇒ Object
8 9 10 11 12 13 14 15 16 17 18 19 |
# File 'src/ruby/dump-anmeldungen.rb', line 8 def run transaction do rows = neo4j_query(<<~END_OF_QUERY, :mode => ARGV.first).map { |x| x['n'] } MATCH (n:PublicEventPerson {mode: $mode})-[:SIGNED_UP_FOR]->(e:PublicEvent {name: "Info-Abend für Viertklässler-Eltern"}) RETURN n ORDER BY n.timestamp; END_OF_QUERY rows.each do |row| puts "#{row[:name]} <#{row[:email]}>" end end end |