PostGRE_CreateTable: PostGRE_CreateTable

View source: R/SQL_Functions.R

PostGRE_CreateTableR Documentation

PostGRE_CreateTable

Description

PostGRE_CreateTable get data from a database table

Usage

PostGRE_CreateTable(
  data = NULL,
  DBName = NULL,
  Schema = NULL,
  TableName = NULL,
  Connection = NULL,
  CloseConnection = FALSE,
  Temporary = FALSE,
  Host = NULL,
  User = NULL,
  Port = NULL,
  Password = NULL
)

Arguments

data

Source data.table. If you supply a Schema, data will be ignored.

DBName

If Connection is NULL then this must be supplied. database name

Schema

Optional. Advised to use if type inference is fuzzy

TableName

Name of table you want created

Connection

NULL. If supplied, use this: Connection <- DBI::dbConnect(RPostgres::Postgres(), host = Host, dbname = DBName, user = User, port = Port, password = Password)

CloseConnection

= FALSE

Temporary

If Connection is NULL then this must be supplied. FALSE

Host

If Connection is NULL then this must be supplied. host name

User

If Connection is NULL then this must be supplied. user name

Port

If Connection is NULL then this must be supplied. port name

Password

user password

Author(s)

Adrian Antico

See Also

Other Database: AutoDataDictionaries(), PostGRE_AppendData(), PostGRE_GetTableNames(), PostGRE_ListTables(), PostGRE_Query(), PostGRE_RemoveCreateAppend(), PostGRE_RemoveTable(), PosteGRE_CreateDatabase(), PosteGRE_DropDB(), PosteGRE_ListDatabases(), SQL_ClearTable(), SQL_DropTable(), SQL_Query_Push(), SQL_Query(), SQL_SaveTable(), SQL_Server_DBConnection()

Examples

## Not run: 
AutoQuant::PostGRE_CreateTable(
  data,
  DBName = 'Testing',
  Schema = NULL,
  TableName = NULL,
  Temporary = FALSE,
  Connection = NULL,
  CloseConnection = FALSE,
  Host = 'localhost',
  User = 'postgres',
  Port = 5432,
  Password = 'Aa...')

## End(Not run)


AdrianAntico/RemixAutoML documentation built on Feb. 3, 2024, 3:32 a.m.