dbDataType,DoltConnection-method | R Documentation |
dbDataType
matches R data types to dolt data types. For text and blob data
types, it automatically chooses amongst options (e.g., VARCHAR(N),
TEXT,
LONGTEXT, etc.
) based on maximum field length. An attribute of maximum
size of these fields is returned to support operations where fields need to be recast in revision.
## S4 method for signature 'DoltConnection'
dbDataType(
dbObj,
obj,
min_varchar = Sys.getenv("DOLT_MINVARCAHR", 255L),
max_varchar = Sys.getenv("DOLT_MAXVARCHAR", 16383L),
...
)
dolt_type_sizes(types)
dbObj |
the database connection |
obj |
the data type (vector or data frame) |
min_varchar |
The minimum size |
max_varchar |
the maximum size |
... |
further arguments to methods |
types |
a character vector of dolt types, e.g., |
dolt_type_sizes()
takes a vector of SQL types and returns the maximum field
size, if applicable.
A character vector of classes, with attributes of the maximum size for text and blob classes
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.