Sets a connection to the local database. If database connection cannot be made, an error is returned.

restez_connect()

See also

Examples

library(restez) fp <- tempdir() restez_path_set(filepath = fp)
#> ... Creating '/var/folders/ps/g89999v12490dmp0jnsfmykm0043m3/T//Rtmp6jFXFa/restez' #> ... Creating '/var/folders/ps/g89999v12490dmp0jnsfmykm0043m3/T//Rtmp6jFXFa/restez/downloads'
demo_db_create(n = 5) restez_connect()
#> Remember to run `restez_disconnect()`
#> Checking setup status at ... #> ─────────────────────────────────────────────────────────────────────────────────────────────── #> Restez path ... #> ... Path '/var/folders/ps/g89999v12490dmp0jnsfmykm0043m3/T//Rtmp6jFXFa/restez' #> ... Does path exist? 'Yes' #> ─────────────────────────────────────────────────────────────────────────────────────────────── #> Download ... #> ... Path '/var/folders/ps/g89999v12490dmp0jnsfmykm0043m3/T//Rtmp6jFXFa/restez/downloads' #> ... Does path exist? 'Yes' #> ... N. files 0 #> ... N. GBs 0 #> ... GenBank division selections '' #> ... GenBank Release '0' #> ... Last updated '' #> ─────────────────────────────────────────────────────────────────────────────────────────────── #> Database ... #> ... Path '/var/folders/ps/g89999v12490dmp0jnsfmykm0043m3/T//Rtmp6jFXFa/restez/sql_db' #> ... Does path exist? 'Yes' #> ... N. GBs 0 #> ... Is database connected? 'Yes' #> ... Does the database have data? 'Yes' #> ... Number of sequences 5 #> ... Min. sequence length '0' #> ... Max. sequence length 'Inf' #> ... Last_updated ''
restez_disconnect() db_delete(everything = TRUE) # Errors # restez_status()