ExprFieldDef | R Documentation |
Table field definition.
Table field definition.
Used to define a field when creating a table.
sqlq::Statement
-> sqlq::Expr
-> ExprFieldDef
new()
Initializer.
ExprFieldDef$new(name, type, primary = FALSE, nullable = TRUE)
name
The field name.
type
The field's type (integer, date, varchar(...), ...).
primary
Set to TRUE if the field is a PRIMARY KEY.
nullable
Set to FALSE of the field does not accept NULL values.
Nothing.
getTokens()
Generates the list of tokens representing this statement.
ExprFieldDef$getTokens()
A list of Token objects.
clone()
The objects of this class are cloneable with this method.
ExprFieldDef$clone(deep = FALSE)
deep
Whether to make a deep clone.
# To generate the definition of a field named "title":
ExprFieldDef$new("title", "TEXT", nullable = FALSE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.