A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://majerr.github.io/sqlhelper/dev/articles/../reference/config_examples.html below:

Examples of yaml configurations for database connections — config_examples • sqlhelper

Provides example configurations for several databases and a range of options

Usage
config_examples(filename = NA)
Arguments
filename

A string. If supplied, examples are written to a file with this name.

Value

A yaml string of database configuration examples, invisibly.

Details

Irrespective of whether a filename is supplied, yaml configuration examples will be returned invisibly as a single string and printed if the session is interactive.

Examples
config_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