get_section: GrafoDB uses two main sections for SQL query strings, one for...

get_sectionR Documentation

GrafoDB uses two main sections for SQL query strings, one for each enviroment: "test" and "prod". 'get_section' takes care of this

Description

if env is "test", it yields "SQLite", otherwise "PostgreSQL".

Usage

get_section(env = getenv())

Arguments

env

environment used for get_sql

Value

string identifing the correct section in TOML file for environment

Note

comparing strings (‘env == "test"') can be expensive that’s why this function is 'memoised'.


giupo/GrafoDB documentation built on Oct. 12, 2022, 9:43 a.m.