dbHumanizeTimestamps: create a view of a table where timestamps are displayed in...

Description Usage Arguments Details Value Author(s)

View source: R/dbHumanizeTimestamps.R

Description

create a view of a table where timestamps are displayed in human-readable form.

Usage

1
2
dbHumanizeTimestamps(dbcon, table, newtable = paste0("_", table),
  tsRegex = "^ts.*", temporary = FALSE)

Arguments

dbcon

connection to a MySQL/MariaDB server or sqlite database

table

name of existing table

newtable

name of new view; default: paste0('_', table)

tsRegex

regular expression that matches names of columns holding numeric timestamps. Default: '^ts.*'

temporary

should view be temporary? default:FALSE

Details

Creates a view of a table where any numeric 'timestamp' field is replaced by a human readble version. The view will have the given new name, 'timestamp' is judged by having a name matching the timestamp regex. If the view already exists, this function does nothing.

Value

TRUE on success; FALSE otherwise.

Author(s)

John Brzustowski jbrzusto@REMOVE_THIS_PART_fastmail.fm


jbrzusto/motusServer documentation built on May 19, 2019, 8:19 a.m.