createTSdbTables(con, index=FALSE)
removeTSdbTables(con, yesIknowWhatIamDoing=FALSE, ToLower=FALSE)
The function removeTSdbTables removes all the TS database tables.
WARNING: use these function only if you know what you are doing. They destroy
the whole database and all stored series.
The function removeTSdbTables
needs to work
around the problem that different
db engines treat capitalized table names differently. For example, MySQL uses
table name Meta while Posgresql converts to meta. The argument ToLower
indicates if table names should be converted to lower case.
The con
needs to be specified. A default con
is not used
on purpose to help avoid accidental use. The argument yesIknowWhatIamDoing
defaults to FALSE
and must be set to TRUE
or the function will
return an error. Beware that dropping tables will destory the
integrity of the of
the database, and would usually only be done when you are intializing a TS database.
Database permission may also be set to prevent users from dropping tables. If that
is the case, then this function will return a failure error.
dbConnect
,
TSdates
,
TSget
,
TSput