polardb-fc-query

Deploy a serverless REST API for parameterized PolarDB queries.

Updated Feb 14, 2026
One-click install
npx skills add https://github.com/liutao96/skill --skill polardb-fc-query
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: polardb-fc-query
Source: https://github.com/liutao96/skill/tree/main/polardb-fc-query
Command: npx skills add https://github.com/liutao96/skill --skill polardb-fc-query

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires mysql2, and includes assets (resource) and references (resource) components.

What problem does it solve?

PolarDB-backed data often requires a secure, scalable API layer. This Skill solves the pain of directly exposing database credentials or writing custom APIs by providing a ready-to-deploy PolarDB REST API via Alibaba Cloud Function Compute, with built-in security checks and low-code integration support.

Core Features & Use Cases

  • Secure REST API endpoint to query PolarDB with parameterized SQL
  • Serverless deployment workflow (Serverless Devs)
  • Feishu Miaoda and multi-project sharing integration
  • Easy templating via assets/polardb-fc-template for rapid start

Quick Start

Clone this skill’s template into your project, update the PolarDB config in s.yaml or environment variables, and deploy with Serverless Devs.

Frequently Asked Questions about polardb-fc-query

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I expose PolarDB data via a REST API without writing custom backend code?

You can expose PolarDB data via a REST API by deploying this serverless Function Compute layer. It provides a ready-to-use querying endpoint with built-in security checks, eliminating the need to build a custom backend or expose database credentials directly.

Can I use parameterized SQL queries through a serverless endpoint for Feishu Miaoda?

Yes, you can use parameterized SQL queries for Feishu Miaoda through this serverless endpoint. It acts as a unified data layer for low-code integrations, enforcing parameterized inputs and SELECT-only queries to ensure safe database access.

How do I deploy a PolarDB REST API using Serverless Devs?

To deploy a PolarDB REST API, clone the provided template into your project, update the PolarDB configuration in the s.yaml file or environment variables, and execute the deployment using Serverless Devs for a scalable serverless workflow.

Does this serverless PolarDB API prevent SQL injection and unauthorized write operations?

Yes, the serverless PolarDB API prevents SQL injection and unauthorized writes by enforcing SELECT-only queries and utilizing parameterized inputs. This ensures that only safe, read-only SQL commands are executed against your database.

What are the limitations of using a serverless Function Compute layer for PolarDB querying?

A limitation of using this serverless layer for PolarDB querying is the strict enforcement of SELECT-only queries. It is designed for data retrieval and low-code integrations, meaning it cannot handle write operations or complex database transactions.