Description Usage Arguments Value Details Examples
View source: R/RMariaDBHelper.R
Set the type of a field (column) in a database table.
1 | db_set_type(tablename, fieldname, fieldtype, conf_file = "~/.db_conf.yml")
|
tablename |
(character) A table name in a database. |
fieldname |
(character) A field name in a database table. |
fieldtype |
(character) A field type to set for a field in a table. |
conf_file |
(character) A file containing database connection parameters. (Default: "~/.db_conf.yml") |
(integer) The number of rows affected by the field type change.
An ALTER TABLE command will change the type of a field in a table in a database.
1 2 3 4 | ## Not run:
db_set_type("iris", "Species", "varchar(32)")
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.