Provides example configurations for several databases and a range of options
Usageconfig_examples(filename = NA)
Arguments
A string. If supplied, examples are written to a file with this name.
A yaml string of database configuration examples, invisibly.
DetailsIrrespective of whether a filename is supplied, yaml configuration examples will be returned invisibly as a single string and printed if the session is interactive.
Examplesconfig_examples()
#> [1] "sqlite_simple:\n driver_type: sqlite\n connection:\n Server: \":memory:\"\n\nsqlite_pool:\n driver_type: sqlite\n pool: yes\n connection:\n Server: \":memory:\"\n\nsqlserver_simple:\n driver_type: sqlserver\n description: >\n A one line description to remind you what this server is for\n connection:\n Driver: \"{ODBC Driver 17 for SQL Server}\" # See https://connectionstrings.com for other examples\n Server: \"the_server_hostname\"\n Trusted_Connection: \"yes\""
# write the examples to a temporary file called 'examples.yml'
config_examples(file.path(tempdir(), "examples.yml"))
#> [1] "sqlite_simple:\n driver_type: sqlite\n connection:\n Server: \":memory:\"\n\nsqlite_pool:\n driver_type: sqlite\n pool: yes\n connection:\n Server: \":memory:\"\n\nsqlserver_simple:\n driver_type: sqlserver\n description: >\n A one line description to remind you what this server is for\n connection:\n Driver: \"{ODBC Driver 17 for SQL Server}\" # See https://connectionstrings.com for other examples\n Server: \"the_server_hostname\"\n Trusted_Connection: \"yes\""
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4