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.

...

not used

Value

A new SemsqlConn object with an active connection.

Examples

goref <- semsql_connect(ontology = "go")
#> Connected to SemanticSQL database: /home/runner/.cache/R/BiocFileCache/1988cc470f_go.db
#> Primary ontology prefix: GO
disconnect(goref)
#> Disconnected from '1988cc470f_go.db'
goref <- reconnect(goref)
#> Connected to SemanticSQL database: /home/runner/.cache/R/BiocFileCache/1988cc470f_go.db
#> Primary ontology prefix: GO
disconnect(goref)
#> Disconnected from '1988cc470f_go.db'