Description Usage Arguments Value See Also Examples
restore_database will restore the database saved from the backup_database function.
1 2 | restore_database(dump_path, con = ".connection", create_new = TRUE,
new_db_name = "newDB")
|
dump_path |
is the full path and file name for the dump file or SQL file |
con |
is the name of the database connection |
create_new |
if this is FALSE then it will create the database using the original DB name. So if the original was columbiaBike it will create a new columbiaBike. If TRUE then it will create a new database with the name specificied in new_db_name |
new_db_name |
if creating a new db then this is the name of the new db |
user.
Other postgresql functions: add_tables_db,
agg_unit_ok, aggregate_data,
already_uploaded,
backup_database,
column_exists, column_types,
create_database, delete_data,
get_column_names,
get_connection,
get_filenames_forSubject,
get_filenames, get_row_count,
get_sensor_data,
get_subjectid,
kill_pg_connections,
list_tables,
process_hexoskin,
table_exists,
upload_postgres,
valid_connection
1 | restore_database("/Users/xyz/backup.dump", con=".connection", create_new = TRUE, new_db_name = "columbiaBike_backup")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.