sqliteCloneIntoDB: clone an sqlite table schema (including indexes) from the...

Description Usage Arguments Details

Description

clone an sqlite table schema (including indexes) from the main DB into an attached DB

Usage

1
sqliteCloneIntoDB(sql, tableName, dbName)

Arguments

sql

safeSQL object to sqlite database

tableName

character; name of table in main database which should be cloned into attached database

dbName

name of attached DB; i.e. the 'D' from a statement like ‘attach database ’blam.sqlite' as D'. The database must already have been attached by the caller.

Details

creates the empty table with the same key and with any associated indexes, but only if a table (and/or indexes) of the same name don't already exist in the attached db.


jbrzusto/motus-R-package documentation built on May 18, 2019, 7:03 p.m.