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: /home/vincent/.cache/R/BiocFileCache/b24227f056f7_go.db
#> Primary ontology prefix: GO
is_connected(goref)   # TRUE
#> [1] TRUE
disconnect(goref)
#> Disconnected from 'b24227f056f7_go.db'
is_connected(goref)   # FALSE
#> [1] FALSE