R/dbObjectId.R

setClass("dbObjectId", representation(Id = "externalptr", "VIRTUAL"),
         prototype=list(Id=NULL))


isIdCurrent <- 
  function(obj)
    ## verify that obj refers to a currently open/loaded database
  { 
    id <- .NetObjFromPtr(obj@Id)
    canCoerce(id, "cobjRef")
  }

isTransaction <- function(conn)
{ 
  trans <- .NetObjFromPtr(conn@trans)
  grepl('Transaction',clrTypename(trans))
}

  
agstudy/rsqlserver documentation built on May 11, 2019, 10:29 p.m.