{"size": 6803, "ext": "rktd", "max_stars_repo_path": "db/scribblings/log-for-exaples.rktd", "max_stars_repo_name": "tomob/neo4j-lib", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "db/scribblings/log-for-exaples.rktd", "max_issues_repo_name": "tomob/neo4j-lib", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "db/scribblings/log-for-exaples.rktd", "max_forks_repo_name": "tomob/neo4j-lib", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 24.7381818182, "max_line_length": 148, "alphanum_fraction": 0.5059532559}
;; This file was created by make-log-based-eval
((require db/neo4j racket/string)
 ((3) 0 () 0 () () (c values c (void)))
 #""
 #"")
((require db db/neo4j) ((3) 0 () 0 () () (c values c (void))) #"" #"")
((define neo4j-c (neo4j-connect))
 ((3) 0 () 0 () () (c values c (void)))
 #""
 #"")
((query-exec neo4j-c "CREATE (bob:Person {name: 'Bob'})")
 ((3) 0 () 0 () () (c values c (void)))
 #""
 #"")
((query neo4j-c "CREATE (dave:Person {name: 'Dave'})")
 ((3)
  1
  (((lib "db/private/generic/interfaces.rkt")
    .
    deserialize-info:simple-result-v0))
  0
  ()
  ()
  (c
   values
   c
   (0
    (h
     -
     ()
     (indexes_removed . 0)
     (nodes_deleted . 0)
     (relationships_created . 0)
     (indexes_added . 0)
     (contains_system_updates . #f)
     (labels_added . 1)
     (labels_removed . 0)
     (system_updates . 0)
     (constraints_added . 0)
     (contains_updates . #t)
     (nodes_created . 1)
     (properties_set . 1)
     (relationship_deleted . 0)
     (constraints_removed . 0)))))
 #""
 #"")
((define queries
   (string-join
    (list
     "CREATE (john:Person {name: 'John'})"
     "CREATE (joe:Person {name: 'Joe'})"
     "CREATE (steve:Person {name: 'Steve'})"
     "CREATE (sara:Person {name: 'Sara'})"
     "CREATE (maria:Person {name: 'Maria'})"
     "CREATE (john)-[:FRIEND]->(joe)-[:FRIEND]->(steve)"
     "CREATE (john)-[:FRIEND]->(sara)-[:FRIEND]->(maria)")))
 ((3) 0 () 0 () () (c values c (void)))
 #""
 #"")
((query neo4j-c queries)
 ((3)
  1
  (((lib "db/private/generic/interfaces.rkt")
    .
    deserialize-info:simple-result-v0))
  0
  ()
  ()
  (c
   values
   c
   (0
    (h
     -
     ()
     (indexes_removed . 0)
     (nodes_deleted . 0)
     (relationships_created . 4)
     (indexes_added . 0)
     (contains_system_updates . #f)
     (labels_added . 5)
     (labels_removed . 0)
     (system_updates . 0)
     (constraints_added . 0)
     (contains_updates . #t)
     (nodes_created . 5)
     (properties_set . 5)
     (relationship_deleted . 0)
     (constraints_removed . 0)))))
 #""
 #"")
((query
  neo4j-c
  "MATCH (john {name: 'John'})-[:FRIEND]->()-[:FRIEND]->(fof) RETURN john.name, fof.name")
 ((3)
  1
  (((lib "db/private/generic/interfaces.rkt")
    .
    deserialize-info:rows-result-v0))
  0
  ()
  ()
  (c
   values
   c
   (0
    (c (u . "john.name") c (u . "fof.name"))
    (c (v! (u . "John") (u . "Maria")) c (v! (u . "John") (u . "Steve"))))))
 #""
 #"")
((query-rows
  neo4j-c
  "MATCH (john {name: 'John'})-[:FRIEND]->()-[:FRIEND]->(fof) RETURN john.name, fof.name")
 ((3)
  0
  ()
  0
  ()
  ()
  (c
   values
   c
   (c (v! (u . "John") (u . "Maria")) c (v! (u . "John") (u . "Steve")))))
 #""
 #"")
((query-row
  neo4j-c
  "MATCH (john {name: 'John'})-[:FRIEND]->()-[:FRIEND]->(fof) WHERE fof.name =~ 'St.*' RETURN john.name, fof.name")
 ((3) 0 () 0 () () (c values c (v! (u . "John") (u . "Steve"))))
 #""
 #"")
((query-list
  neo4j-c
  "MATCH (john {name: 'John'})-[:FRIEND]->()-[:FRIEND]->(fof) RETURN fof.name")
 ((3) 0 () 0 () () (c values c (c (u . "Maria") c (u . "Steve"))))
 #""
 #"")
((query-value
  neo4j-c
  "MATCH (john {name: 'John'})-[:FRIEND]->()-[:FRIEND]->(fof) WHERE fof.name =~ 'St.*' RETURN fof.name")
 ((3) 0 () 0 () () (c values c (u . "Steve")))
 #""
 #"")
((query-maybe-value
  neo4j-c
  "MATCH (john {name: 'John'})-[:FRIEND]->()-[:FRIEND]->(fof) WHERE fof.name =~ 'B.*' RETURN fof.name")
 ((3) 0 () 0 () () (q values #f))
 #""
 #"")
((for
  (((friend fof)
    (in-query
     neo4j-c
     "MATCH (john {name: 'John'})-[:FRIEND]->(friend)-[:FRIEND]->(fof) RETURN friend.name, fof.name")))
  (printf "John's friend ~a's friend is ~a\n" friend fof))
 ((3) 0 () 0 () () (c values c (void)))
 #"John's friend Sara's friend is Maria\nJohn's friend Joe's friend is Steve\n"
 #"")
((query-rows
  neo4j-c
  "MATCH (john {name: $name})-[:FRIEND]->()-[:FRIEND]->(fof) WHERE fof.name =~ 'St.*' RETURN john.name, fof.name"
  (hash 'name "John"))
 ((3) 0 () 0 () () (c values c (c (v! (u . "John") (u . "Steve")))))
 #""
 #"")
((query-rows
  neo4j-c
  "MATCH (john {name: $name})-[:FRIEND]->()-[:FRIEND]->(fof) WHERE fof.name =~ 'St.*' RETURN john.name, fof.name"
  #hash((name . "John")))
 ((3) 0 () 0 () () (c values c (c (v! (u . "John") (u . "Steve")))))
 #""
 #"")
((query-rows
  neo4j-c
  "MATCH (john {name: $name})-[:FRIEND]->()-[:FRIEND]->(fof) WHERE fof.name =~ 'St.*' RETURN john.name, fof.name"
  "John")
 ((3) 0 () 0 () () (c values c (c (v! (u . "John") (u . "Steve")))))
 #""
 #"")
((start-transaction neo4j-c) ((3) 0 () 0 () () (c values c (void))) #"" #"")
((query-exec
  neo4j-c
  "MATCH (bob:Person {name: 'Bob'}) MATCH (dave:Person {name: 'Dave'}) CREATE (dave)-[:FRIEND]->(bob)")
 ((3) 0 () 0 () () (c values c (void)))
 #""
 #"")
((query-value
  neo4j-c
  "MATCH (dave:Person {name: 'Dave'})-[:FRIEND]->(who) RETURN who.name")
 ((3) 0 () 0 () () (c values c (u . "Bob")))
 #""
 #"")
((rollback-transaction neo4j-c) ((3) 0 () 0 () () (c values c (void))) #"" #"")
((query-rows
  neo4j-c
  "MATCH (dave:Person {name: 'Dave'})-[:FRIEND]->(who) RETURN who.name")
 ((3) 0 () 0 () () (q values ()))
 #""
 #"")
((define johns-fof
   (prepare
    neo4j-c
    "MATCH (john {name: $name})-[:FRIEND]->()-[:FRIEND]->(fof) WHERE fof.name =~ 'St.*' RETURN john.name, fof.name"))
 ((3) 0 () 0 () () (c values c (void)))
 #""
 #"")
((query-rows neo4j-c johns-fof "John")
 ((3) 0 () 0 () () (c values c (c (v! (u . "John") (u . "Steve")))))
 #""
 #"")
((define bound-stmt (bind-prepared-statement johns-fof '("John")))
 ((3) 0 () 0 () () (c values c (void)))
 #""
 #"")
((query-rows neo4j-c bound-stmt)
 ((3) 0 () 0 () () (c values c (c (v! (u . "John") (u . "Steve")))))
 #""
 #"")
((list-tables neo4j-c)
 ((3)
  0
  ()
  0
  ()
  ()
  (q exn "list-tables: feature not supported\n  feature: listing tables"))
 #""
 #"")
((table-exists? neo4j-c "a-table")
 ((3)
  0
  ()
  0
  ()
  ()
  (q exn "table-exists?: feature not supported\n  feature: listing tables"))
 #""
 #"")
((for/list
  (((john fof)
    (in-query
     neo4j-c
     "MATCH (john {name: 'John'})-[:FRIEND]->()-[:FRIEND]->(fof) RETURN john.name, fof.name")))
  fof)
 ((3) 0 () 0 () () (c values c (c (u . "Maria") c (u . "Steve"))))
 #""
 #"")
((for/list
  (((john fof)
    (in-query
     neo4j-c
     "MATCH (john {name: 'John'})-[:FRIEND]->()-[:FRIEND]->(fof) RETURN john.name, fof.name"
     #:fetch
     1)))
  fof)
 ((3)
  0
  ()
  0
  ()
  ()
  (q
   exn
   "in-query: query did not return cursor\n  statement: \"MATCH (john {name: 'John'})-[:FRIEND]->()-[:FRIEND]->(fof) RETURN john.name, fof.name\""))
 #""
 #"")
((query-exec neo4j-c "MATCH p=(n)-[r:FRIEND]->(f) delete n,r,f")
 ((3) 0 () 0 () () (c values c (void)))
 #""
 #"")
((query-exec neo4j-c "MATCH (n:Person) delete n")
 ((3) 0 () 0 () () (c values c (void)))
 #""
 #"")
