Documentation
¶
Index ¶
- type DBTools
- func (t *DBTools) ExecuteQuery(params json.RawMessage) (interface{}, error)
- func (t *DBTools) GetTableSchema(params json.RawMessage) (interface{}, error)
- func (t *DBTools) InsertRecord(params json.RawMessage) (interface{}, error)
- func (t *DBTools) ListDatabases(params json.RawMessage) (interface{}, error)
- func (t *DBTools) RegisterDatabase(params json.RawMessage) (interface{}, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DBTools ¶
type DBTools struct {
// contains filtered or unexported fields
}
DBTools provides database-related MCP tools
func NewDBTools ¶
NewDBTools creates a new DBTools instance
func (*DBTools) ExecuteQuery ¶
func (t *DBTools) ExecuteQuery(params json.RawMessage) (interface{}, error)
ExecuteQuery executes a read-only SQL query
func (*DBTools) GetTableSchema ¶
func (t *DBTools) GetTableSchema(params json.RawMessage) (interface{}, error)
GetTableSchema returns the schema for a specific table
func (*DBTools) InsertRecord ¶
func (t *DBTools) InsertRecord(params json.RawMessage) (interface{}, error)
InsertRecord inserts a new record into a table
func (*DBTools) ListDatabases ¶
func (t *DBTools) ListDatabases(params json.RawMessage) (interface{}, error)
ListDatabases lists all registered databases
func (*DBTools) RegisterDatabase ¶
func (t *DBTools) RegisterDatabase(params json.RawMessage) (interface{}, error)
RegisterDatabase registers a new SQLite database
Click to show internal directories.
Click to hide internal directories.