Description Usage Arguments Value
View source: R/connect-to-db.R
Currently a shell for a SQLite connection
1 2 3 4 5 6 7 8 9 | connect_to_db(
type = "sqlite",
dbname = "hockey",
schema = "nhl",
host = "localhost",
port = 5432,
user = "postgres",
password = getPass::getPass()
)
|
type |
One of "sqlite" or "postgres" (defaults to "sqlite" as an internal test) |
dbname |
The database name. If type = 'sqlite', it will be created. If type = 'postgres', it must be an existing database. Defaults to "hockey" |
schema |
Only used if type = 'postgres'. Defaults to 'nhl' |
host |
Defaults to "localhost" |
port |
Defaults to 5432 |
user |
Defaults to 'postgres' |
password |
Defaults to getPass::getPass() |
an active connection to a db called "tempdb"
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.