ddbs_create_schema | R Documentation |
Check and create schema
ddbs_create_schema(conn, name)
conn |
a connection object to a DuckDB database |
name |
a character string with the name of the schema to be created |
TRUE (invisibly) for successful schema creation
## load packages
library(duckdb)
library(duckspatial)
## connect to in memory database
conn <- dbConnect(duckdb::duckdb())
## create a new schema
ddbs_create_schema(conn, "new_schema")
## check schemas
dbGetQuery(conn, "SELECT * FROM information_schema.schemata;")
## disconnect from db
dbDisconnect(conn)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.