Class: DumpDatabase

Inherits:
Object
  • Object
show all
Includes:
Neo4jBolt
Defined in:
src/ruby/dump-anmeldungen.rb

Instance Method Summary collapse

Instance Method Details

#runObject



8
9
10
11
12
13
14
15
16
17
# File 'src/ruby/dump-anmeldungen.rb', line 8

def run
    puts "Track\tTimestamp\tName\tE-Mail"
    neo4j_query(<<~END_OF_QUERY).each do |row|
        MATCH (n:PublicEventPerson)-[:SIGNED_UP_FOR]->(e:PublicEventTrack)
        RETURN n, e
        ORDER BY e.track, n.timestamp;
    END_OF_QUERY
        puts "#{row['e'][:track]}\t#{row['n'][:timestamp]}\t#{row['n'][:name]}\t#{row['n'][:email]}"
    end
end