Back to Tools

Database Query

Data

Execute SQL queries against PostgreSQL, MySQL, or SQLite databases. Supports parameterized queries for security.

Available Actions
queryinsertupdatedelete
Input Schema
{
  "type": "object",
  "required": [
    "sql"
  ],
  "properties": {
    "sql": {
      "type": "string"
    },
    "params": {
      "type": "array"
    },
    "database": {
      "type": "string"
    }
  }
}
Output Schema
{
  "type": "object",
  "properties": {
    "rows": {
      "type": "array"
    },
    "fields": {
      "type": "array"
    },
    "rowCount": {
      "type": "number"
    }
  }
}
Quick Start

API Endpoint

POST /api/execute/database-query

cURL Example

curl -X POST \
  https://api.nulayers.com/execute/database-query \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"action": "query"}'
Integration

Get your API key from the dashboard to start using this tool in your AI applications.