bookclerk_plugin_sdk.guest_sql

Development These docs follow the development version and change with every merge.

Last updated View as Markdown

Guest SQL classification — must match host guest_statement_kind.

Name Kind Summary
guest_statement_kind function Classify guest SQL kind to match the host canonical request hash.
split_exec_queries function Split Cloudflare-style exec() newline-separated queries.
DbStatementKind constant

Functions

guest_statement_kind

def guest_statement_kind(sql: str) -> DbStatementKind

Classify guest SQL kind to match the host canonical request hash.

split_exec_queries

def split_exec_queries(query: str) -> list[str]

Split Cloudflare-style exec() newline-separated queries.

Constants

DbStatementKind

DbStatementKind = Literal['execute', 'select', 'returning']

Generated from packages/plugin-sdk-python at main · View as Markdown