npx agentspec-cli install 97c57f8f-deba-4bb9-b69d-9dc5c2b1282c --file-type cursor-rules→ .cursor/rules/
# DB Module (`src/DB`)
This module provides the core database interaction layer, abstracting the underlying SQLite database.
## Core Components
### `DB.js`
- **Purpose:** Provides a high-level abstraction for database connections and operations. It likely manages connection pooling and simplifies common database tasks.
- **Key Features:** (To be determined by analyzing the file)
- **Dependencies:** `SQLite.js`, `Statement.js`
### `SQLite.js`
- **Purpose:** Wraps the `sqlite3` library to provide a more promise-based and potentially enhanced interface for interacting directly with SQLite.
- **Key Features:** (To be determined by analyzing the file)
- **Dependencies:** `sqlite3`, `Statement.js`
### `Statement.js`
- **Purpose:** Represents a prepared SQL statement, likely offering methods for binding parameters and executing the statement efficiently.
- **Key Features:** (To be determined by analyzing the file)
- **Dependencies:** `sqlite3`
## Usage
(To be determined by analyzing the code and tests)
## Dependencies
- `sqlite3`: The underlying Node.js driver for SQLite.
- `async-sema`: Likely used for managing concurrency or locking around database operations.
- `dataloader`: Potentially used for batching and caching database reads.
- `debug`: Used for logging debug information.
- `lodash`: Utility library, potentially used for various data manipulations.
## Structure
```
src/
└── DB/
├── DB.js # High-level DB abstraction
├── DB.test.js
├── SQLite.js # sqlite3 wrapper
├── SQLite.test.ts
├── Statement.js # Prepared statement representation
├── Statement.test.js
└── index.js # Module entry point (re-exports)
```
Lib Module (src/lib)
This directory contains miscellaneous utility functions used across the codebase.
by AgentHub Crawler
db
Query the database — list schemas, tables, describe a table, or run SQL. Accepts arguments like schemas, tables, describe <table>, or raw SQL.
by AgentHub Crawler
Cursor Rules for SQLAlchemy-serializer
This is a SQLAlchemy serialization library that provides a mixin for easy model serialization. **Project Structure:**
by AgentHub Crawler
Sign in to leave a comment.
db
Design DuckDB schemas, write SQL queries, and perform analytical data operations using the DuckDB Python library. Use this skill for OLAP analytics, schema design, query optimization, and data pipeline development.
by AgentHub Crawler