Create and index on an existing table column
create_index(tablename, columnname, schemaname = NULL, indexname = NULL,
unique = FALSE, using = NULL, collate = NULL, descending = FALSE,
tablespace = NULL, where = NULL)add_primary_key(tablename, columnname, schemaname = NULL)
add_foreign_key(tablename, columnname, foreign_table, foreign_column = NULL,
schemaname = NULL, foreign_schema = schemaname)
create_schema(schemaname)
add_column(columnname, columntype, tablename, schemaname = NULL)
createdb(name)
dropdb(name, if_exists = TRUE)
the name of the table
the name of the column
specifically in this schema
optional index name to use
if true, create a unique index
the index method
set collation
if true, sort descending
create in this tablespace
restrict to rows matching predicate
the foreign table name
a key column (defaults to primary key)
the schema of the foreign table
the column SQL type
name of the database
don't fail on missing database
Build an index on a column.