Skip to contents

Attempts to reconnect a disconnected SemsqlConn object to its database. Returns a new SemsqlConn; the original cannot be modified in place due to S7 value semantics.

Usage

reconnect(x, ...)

Arguments

x

A SemsqlConn object.

Value

A new SemsqlConn object with an active connection.

Examples

goref <- semsql_connect(ontology = "go")
#> Connected to SemanticSQL database: /Users/vincentcarey/Library/Caches/org.R-project.R/R/BiocFileCache/40e293b372b_go.db
#> Primary ontology prefix: GO
disconnect(goref)
#> Disconnected from '40e293b372b_go.db'
goref <- reconnect(goref)
#> Connected to SemanticSQL database: /Users/vincentcarey/Library/Caches/org.R-project.R/R/BiocFileCache/40e293b372b_go.db
#> Primary ontology prefix: GO
disconnect(goref)
#> Disconnected from '40e293b372b_go.db'