~/talk

dbcooper: Turn any database into an R or Python package

Talkat rstudio::conf(2022) · 2022-07-25..07-28· [databases]
links:none on file
slides:none on file

dbcooper turns a DBI connection into an opinionated API that generates prefixed functions (e.g. dbc_init) and one accessor per table so queries become autocomplete-friendly accessors rather than juggling a connection object. Implements R (dbplyr) and Python (siuba) ports and shows concrete builds: a lahman demo, a New York Times COVID BigQuery example, and a stackbigquery wrapper for Stack Overflow. Google BigQuery lists 239 public DBs, so the package’s approach scales, and the demos show exploration feels fluid and works.

AI-written summary · about

  1. 0:00Start
  2. 4:00Example: Get a remote table
  3. 4:17Example: Run a SQL query
  4. 4:34Example: Execute a command
  5. 8:14Access tables with autocomplete
  6. 13:00Write database-specific connection code
  7. 13:12Add code to zzz.R to run dbc_init()
  8. 13:56Add any database-specific verbs
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.