Skip to content

Latest commit

 

History

1 Commit

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SQL Context Pack

SQL Context Pack สร้าง SQL context ที่พร้อมใช้กับ AI จาก TABLE, PROCEDURE และ FUNCTION ภายในขอบเขต profile ที่ owner อนุญาต พร้อม masked sample แบบจำกัดจำนวน แบ่ง context เป็นโฟลเดอร์ และเก็บสิ่งที่ยังยืนยันไม่ได้ไว้ใน unknowns/ โดยไม่เดา

เวอร์ชันปัจจุบัน: 2.1.0 · Python >=3.11 · Output format 2

ความสามารถหลัก:

  • สำรวจ SQL Server, PostgreSQL, MySQL, MariaDB และ Oracle แบบ read-only
  • export DDL/metadata ของ table, Stored Procedure และ Function; table data มีเฉพาะ bounded masked sample
  • ใส่ managed header ที่มี identity, context, description, tags, status และ hashes ในทุกไฟล์ SQL
  • จัดประเภทไฟล์จาก owner-registered folder โดยเขียนไป output แยกเป็นค่าเริ่มต้น
  • ใช้ [agrimap_app].[DB_METADATA_CONTEXT] เป็น context index สำหรับค้นหาและสร้าง generation plan
  • reconcile index แบบ partial หรือ complete catalog ที่พิสูจน์ scope แล้ว โดย complete mode soft-deactivate record ที่หายไปและไม่เดา context
  • วางแผนและอัปเดต Procedure/Function แบบไฟล์เดียวหรือทั้งโฟลเดอร์; SQL Server Procedure ใช้ CREATE OR ALTER PROCEDURE เสมอ
  • ใช้ Skill/MCP เดียวกันผ่าน Codex, Claude Code, Antigravity (agy) และ Gemini CLI
  • service เดียวต่อเครื่อง ทุก session ต่อผ่าน stdio bridge ของตัวเอง ไม่ใช่ service ต่อ session

เริ่มที่ Getting Started แล้วเลือกวิธีติดตั้งตาม provider จาก แผนที่เอกสาร ตัวอย่างการใช้มีเพียงสาม flow ที่ ง่าย / กลาง / พลิกแพลง

ขอบเขตสำคัญ: credential อยู่ฝั่ง owner, service bind เฉพาะ loopback, write scope ปิดเป็นค่าเริ่มต้น, ทุก database write ต้องผ่าน request-bound approval และโครงการไม่ดึงข้อมูลทุก row ของ table

Version 2.1.0

2.1.0 is the baseline release for the current development workflow. It closes three Query Data read-path bypasses, makes DB_METADATA_CONTEXT sync the full discovered inventory on every export, adds the agy (Antigravity) host, and makes the shared service manageable on every platform from an installed package.

It is a major bump because sqlctx_sync_context_index gained a mode and Query Data now rejects FOR XML/FOR JSON, table and query hints, and bare identity functions. Read the release and migration notes before upgrading.

Earlier notes remain in docs/releases/1.6.0.md and docs/releases/1.5.0.md.

Use sqlctx doctor check --mcp to inspect readiness, sqlctx doctor update --host <host> for an explicit update, and sqlctx service status to see which supervisor owns the shared service.

Development workflow and repair procedures live in AGENTS.md and docs/knowledge/.

About

A tool for dumping databases to create context reference schema for LLMs, providing a better understanding of the data context for programming.

Resources

Security policy

Stars

2 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages