-
-
Notifications
You must be signed in to change notification settings - Fork 2
Client API
Oxford Harrison edited this page Nov 11, 2024
·
13 revisions
Client is the top-level interface in Linked QL. Each instance implements the following methods:
API | Description |
---|---|
client.query() |
Run an arbitrary query. |
client.createDatabase() |
Programmatically perform a CREATE DATABASE operation. |
client.renameDatabase() |
Programmatically perform a RENAME DATABASE operation. |
client.alterDatabase() |
Programmatically perform an ALTER DATABASE operation. |
client.dropDatabase() |
Programmatically perform a DROP DATABASE operation. |
client.hasDatabase() |
Check if a database exists. |
client.databases() |
Get the list of databases. |
client.database() |
Obtain a Database instance. |
client.schema() |
Obtain the root schema instance. |
client.listen() |
Bind an event listener. |
client.getPID() |
Get your client connection ID. |
Obtain the Linked QL client for your database as shown in the getting started guide.