Conversation
webern
commented
Jan 9, 2026
- Add OutputFormat enum (json/markdown/csv), QueryArgs, and SchemaArgs to support the new query interface. Add stub implementations in the database layer and wire up CLI commands in main.rs. Create new commands/query.rs module with Rows and Schema types. - Add JsonSchema derive to AutoCat and Category structs, and add field_descriptions() method to Item trait that extracts field descriptions from JsonSchema doc comments. - Add read-only SQLite connection pool to Db struct for query isolation. Implement execute_query() to run arbitrary SQL and return results in JSON, Markdown, or CSV format. Implement get_schema() to return database schema including tables, columns, indexes, foreign keys, row counts, and field descriptions extracted from JsonSchema. - Add MCP tools for executing read-only SQL queries and retrieving database schema information. The query tool supports json, markdown, and csv output formats. The schema tool returns table structure, column info, indexes, foreign keys, and field descriptions. - Document the new query and schema MCP tools in the usage instructions, including parameters, output formats, example queries, schema structure, and updated best practices.
139bbca to
125ad83
Compare
Apparently I have to publish my patch of the Oxide sheet crate if I want to publish this library. I have also added some tags for crates.io.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.