dbDataType-MySQLDriver-method: Determine the SQL Data Type of an S object

Description Usage Arguments Examples

Description

This method is a straight-forward implementation of the corresponding generic function.

Usage

1
2
3
4
5
## S4 method for signature 'MySQLDriver'
dbDataType(dbObj, obj)

## S4 method for signature 'MySQLConnection'
dbDataType(dbObj, obj)

Arguments

dbObj

A MySQLDriver or MySQLConnection.

obj

R/S-Plus object whose SQL type we want to determine.

Examples

1
2
3
dbDataType(RMySQL::MySQL(), "a")
dbDataType(RMySQL::MySQL(), 1:3)
dbDataType(RMySQL::MySQL(), 2.5)

Example output

Loading required package: DBI
[1] "text"
[1] "bigint"
[1] "double"

RMySQL documentation built on June 22, 2021, 5:08 p.m.