Helper functions for common SQL Statements
select_star(schema_tbl)
drop_if_exists(schema_tbl)
add_verbose(schema_tbl)
create_index(schema_tbl, index_cols)
character Schema.table name.
character expects a vector of column names...c('col1','col2','col3')
These functions return common SQL statements that can be combined to to build a complete pipeline of commands such as drop, create, create index.
The table name needs to include the schema in the Postgres server. The list of primary keys can simply be "var1,var2,var3" because this will be inserted into an SQL statement that will be sent to the server.