R/find_node.R

Defines functions find_node

Documented in find_node

#' Generates the SQL to find a node from the database
#'
#' @param identifier The identifier for the node
#' @return A SQL statement to find a node
#' @export
find_node <- function(identifier) {
  paste0("SELECT body FROM nodes WHERE json_extract(body, '$.id') = \"", identifier, "\";")
}

Try the simplegraphdb package in your browser

Any scripts or data that you put into this service are public.

simplegraphdb documentation built on March 12, 2021, 5:05 p.m.