SQLite Reader Skill
Quick Start
To read a SQLite file:
- 1. Use
read_sqlite tool (not yet implemented - need to create script first) - Or use the provided Python script in scripts/read_sqlite.py
Available Tools
Currently no direct tool exists, but I'll create a Python script that can:
- - List all tables in the database
- Show table schema
- Execute SELECT queries
- Export data to CSV/JSON
Usage Examples
List all tables
CODEBLOCK0
Show table schema
CODEBLOCK1
Execute SELECT query
CODEBLOCK2
Implementation Plan
I need to create:
- 1.
scripts/read_sqlite.py - Python script for SQLite operations - INLINECODE2 - SQLite schema reference
SQLite 读取技能
快速开始
要读取 SQLite 文件:
- 1. 使用 readsqlite 工具(尚未实现 - 需要先创建脚本)
- 或者使用 scripts/readsqlite.py 中提供的 Python 脚本
可用工具
目前没有直接可用的工具,但我会创建一个能够执行以下操作的 Python 脚本:
- - 列出数据库中的所有表
- 显示表结构
- 执行 SELECT 查询
- 将数据导出为 CSV/JSON 格式
使用示例
列出所有表
python
python scripts/read_sqlite.py --list-tables C:\path\to\database.sqlite
显示表结构
python
python scripts/read_sqlite.py --schema C:\path\to\database.sqlite users
执行 SELECT 查询
python
python scripts/read_sqlite.py --query SELECT * FROM sessions LIMIT 5 C:\path\to\database.sqlite
实施计划
我需要创建:
- 1. scripts/read_sqlite.py - 用于 SQLite 操作的 Python 脚本
- references/schema.md - SQLite 结构参考