返回 Skill 列表
extension
分类: 开发与工程无需 API Key

sqlspec-asyncmy

SQLSpec asyncmy 适配器工作流程。在实现、调试或审查SQLSpec asyncmy适配器配置/驱动行为、参数配置文件更改或特定于适配器的测试/文档时使用。

person作者: jakexiaohubgithub

SQLSpec AsyncMy Adapter

Read .claude/skills/sqlspec_adapters/asyncmy.md for Claude's adapter playbook and docs/guides/adapters/asyncmy.md for project documentation.

Where to look

  • Adapter implementation: sqlspec/adapters/asyncmy/ (config.py, driver.py, _typing.py)
  • Parameter profiles: sqlspec/core/parameters.py (asyncmy profile + statement config helpers)
  • Driver bases and mixins: sqlspec/driver/ and sqlspec/driver/mixins/
  • Tests: tests/integration/test_adapters/test_asyncmy/ and tests/integration/test_stack_edge_cases.py
  • Claude and specs references: .claude/AGENTS.md, .claude/skills/README.md, specs/AGENTS.md, specs/guides/quality-gates.yaml

How it works

  • Use config classes to map connection_config, driver_features, and statement config; register via SQLSpec.add_config().
  • Override _connection_in_transaction() with direct attribute access (returns False; AsyncMy relies on explicit BEGIN and does not expose reliable transaction state.).
  • Flow parameter styles through StatementConfig from the driver profile; adapter guides describe defaults and overrides.
  • Execute stacks with StatementStack using adapter-native pipeline when available, otherwise fall back to sequential execution.

Official References

  • https://sqlspec.dev/
  • https://sqlspec.dev/reference/adapters/asyncmy.html
  • https://sqlspec.dev/changelog.html
  • https://pypi.org/project/asyncmy/
  • https://github.com/long2ice/asyncmy
  • https://github.com/long2ice/asyncmy/releases

Shared Styleguide Baseline