stacomirtools (version 0.5.3)

ConnectionODBC-class: Class "ConnectionODBC"

Description

Mother class for connection, opens the connection but does not shut it

Arguments

Objects from the Class

Objects can be created by calls of the form new("ConnectionODBC", ...).

baseODBC:

Object of class "vector" The database

silent:

Object of class "logical" The mode

etat:

Object of class "character" The state

connection:

Object of class "ANY" The connection

Slots

baseODBC:

Object of class "vector" The database

silent:

Object of class "logical" The mode

etat:

Object of class "character" The state

connection:

Object of class "ANY" The connection

Methods

connect

signature(object = "ConnectionODBC"): Connection to the database

Examples

Run this code
# NOT RUN {
showClass("ConnectionODBC")
# }
# NOT RUN {
 ## this is the mother class, you don't have to use it, 
 ## please use requeteODBC and daughter class instead
 object<-new("ConnectionODBC")
 object@baseODBC<-c("myODBCconnection","myusername","mypassword")
 object@silent<-FALSE
 object<-connect(object)
 odbcClose(object@connection)
# }

Run the code above in your browser using DataLab