F1dbConnect | R Documentation |
Establishes a connection to a 'DuckDB' or 'SQLite' database previously created by createF1db
.
F1dbConnect(file = "f1_db.duckdb")
file |
path to the database file |
an object of class duckdb_connection
or SQLiteConnection
## Not run:
# a file "f1_db.duckdb" already exists in the working directory
con <- F1dbConnect()
dbListFields(con)
circuits <- dbReadTable(con, "circuits")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.