angelxmoreno / angelxmoreno/bun-sqlite-orm
[Feature]: CLI tools for entity generation and database operations
- Dominant language
- TypeScript
- Stars
- 1
- Forks
- 0
- PR merge metrics
- No merged PRs in 30d
Description
**Problem Statement:**
Developers need productivity tools for common ORM operations like generating entities from database schemas or creating boilerplate entity files.
**Proposed Solution:**
Create comprehensive CLI tooling:
```bash
# Entity generation
bun orm entity:generate User --fields="name:string,email:string,age:number"
bun orm entity:from-db --table=users --output=./src/entities/
# Database operations
bun orm db:create
bun orm db:drop
bun orm db:seed
bun orm db:reset
# Schema operations
bun orm schema:sync
bun orm schema:drop
bun orm schema:log
```
**Generated Entity Example:**
```typescript
import { BaseEntity, Entity, PrimaryGeneratedColumn, Column } from 'bun-sqlite-orm';
@Entity('users')
export class User extends BaseEntity {
@PrimaryGeneratedColumn()
id\!: number;
@Column({ type: 'text' })
name\!: string;
@Column({ type: 'text', unique: true })
email\!: string;
@Column({ type: 'integer', nullable: true })
age?: number;
}
```
Contributor guide
Research direction
The issue defines CLI commands for entity generation, database operations, and schema operations, but names no existing files, entry points, or tests. First identify the project's CLI architecture and ORM/database APIs, then clarify which command group is in scope. Done should include an agreed command surface, generated-entity behavior, and tests for the selected operations.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- bun, typescript
- Domain
- cli, database
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100