sqlite.userVersion
This function gives the pragma `user_version` of a database.
MCPCLI- Package
- @procedures/sqlite · README
- Path
["sqlite","userVersion"]- CLI
mark sqlite userVersion --db <object>- MCP tool
sqlite.userVersionon thedev-toolsserver- As data
{"$proc":["sqlite","userVersion"],"input":{}}
Use it
In TypeScript
import { Client, LocalTransport, PROCEDURE_REGISTRY } from "@procedures/client";
import "@procedures/sqlite/register"; // registers its procedures
const client = new Client(new LocalTransport({ registry: PROCEDURE_REGISTRY }));
const result = await client.exec(["sqlite","userVersion"], { db: {} });
console.log(JSON.stringify(result));From the command line
$ mark sqlite userVersion --db <object>
As data, in a program
{ "$proc": ["sqlite", "userVersion"], "input": { "db": {} } }Input
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
db | object | yes | A handle of a node:sqlite#DatabaseSync. The procedure that opens it gives it, and handle.close closes it. |
Output
The schema does not list fields (number).
JSON Schemas
{
"input": {
"type": "object",
"properties": {
"db": {
"type": "object",
"properties": {
"handle": {
"type": "string",
"minLength": 1,
"description": "The id of the handle. The procedure that opens the object gives it."
}
},
"required": [
"handle"
],
"additionalProperties": false,
"x-procedures-handle": "node:sqlite#DatabaseSync",
"description": "A handle of a node:sqlite#DatabaseSync. The procedure that opens it gives it, and handle.close closes it."
}
},
"required": [
"db"
],
"additionalProperties": false
},
"output": {
"type": "number"
}
}