Skip to contents

Test whether a SemsqlConn has a valid open connection

Usage

is_connected(x, ...)

Arguments

x

A SemsqlConn object.

Value

logical(1).

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
is_connected(goref)   # TRUE
#> [1] TRUE
disconnect(goref)
#> Disconnected from '40e293b372b_go.db'
is_connected(goref)   # FALSE
#> [1] FALSE