already_uploaded: Tests if data has already been uploaded

Description Usage Arguments Value See Also Examples

View source: R/postgresql.R

Description

This function tests whether the filename exists in the given table there is no check to see if the date or data are the same – based only on filename

Usage

1
already_uploaded(tablename, filename, con = ".connection")

Arguments

dbname

the database.

host

database host, usually 'localhost'

Value

.connection – which is a global variable

See Also

Other postgresql functions: add_tables_db, agg_unit_ok, aggregate_data, 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, restore_database, table_exists, upload_postgres, valid_connection

Examples

1
try(already_uploaded("gps", "BIKE0001_GPS01_S01_150306.gpx"), silent=TRUE)

zross/sensorDataImport documentation built on Aug. 16, 2019, 8:30 p.m.