Gathering detailed insights and metrics for dreeked
Gathering detailed insights and metrics for dreeked
Gathering detailed insights and metrics for dreeked
Gathering detailed insights and metrics for dreeked
npm install dreeked
Typescript
Module System
Min. Node Version
Node Version
NPM Version
Cumulative downloads
Total Downloads
Last Day
0%
NaN
Compared to previous day
Last Week
0%
NaN
Compared to previous week
Last Month
0%
NaN
Compared to previous month
Last Year
0%
NaN
Compared to previous year
AI-powered CLI tool to generate ORM schemas from PostgreSQL and MySQL databases using advanced language models.
1npm install -g insomma
1npx insomma --help
1bunx insomma --help
1export DEEPINFRA_API_KEY="your-api-key-here"
1insomma \ 2 --connection "postgres://user:password@localhost:5432/mydb" \ 3 --orm prisma \ 4 --output schema.prisma
1insomma \ 2 --connection "postgres://user:pass@host:port/db" \ 3 --orm typeorm \ 4 --output entities.ts
1insomma \ 2 --connection "mysql://user:password@localhost:3306/mydb" \ 3 --orm prisma \ 4 --output schema.prisma
1insomma \ 2 --connection "mysql://user:pass@host:port/db" \ 3 --orm drizzle \ 4 --output schema.ts
1insomma \ 2 --connection "postgres://user:pass@host:port/db" \ 3 --orm zod \ 4 --output validations.ts
1insomma \ 2 --connection "mysql://user:pass@host:port/db" \ 3 --orm prisma
1insomma \ 2 --connection "some-custom-connection-string" \ 3 --type mysql \ 4 --orm prisma
1# Auto-detect database type 2insomma test-connection \ 3 --connection "postgres://user:pass@host:port/db" 4 5# Specify database type 6insomma test-connection \ 7 --connection "mysql://user:pass@host:port/db" \ 8 --type mysql
1# PostgreSQL 2insomma list-tables \ 3 --connection "postgres://user:pass@host:port/db" 4 5# MySQL 6insomma list-tables \ 7 --connection "mysql://user:pass@host:port/db"
-c, --connection <string>
- Database connection string (required)-t, --type <string>
- Database type (postgres, mysql, auto) [default: auto]-o, --orm <string>
- Target ORM (prisma, typeorm, drizzle, zod) [default: prisma]-f, --output <string>
- Output file path (optional)--api-key <string>
- DeepInfra API key (optional if env var set)--verbose
- Enable verbose logging-c, --connection <string>
- Database connection string (required)-t, --type <string>
- Database type (postgres, mysql, auto) [default: auto]-c, --connection <string>
- Database connection string (required)-t, --type <string>
- Database type (postgres, mysql, auto) [default: auto]postgres://username:password@hostname:port/database
postgresql://username:password@hostname:port/database
Examples:
1# Local database 2postgres://postgres:password@localhost:5432/myapp 3 4# Remote database 5postgres://user:pass@db.example.com:5432/production 6 7# With SSL 8postgres://user:pass@host:5432/db?sslmode=require
mysql://username:password@hostname:port/database
Examples:
1# Local database 2mysql://root:password@localhost:3306/myapp 3 4# Remote database 5mysql://user:pass@db.example.com:3306/production 6 7# With SSL 8mysql://user:pass@host:3306/db?ssl=true
The tool automatically detects the database type from the connection string:
postgres://
, postgresql://
prefixes or port :5432
mysql://
prefix or port :3306
--type
option to specify explicitlyGenerates complete Prisma schema with:
Generates TypeScript entity classes with:
Generates Drizzle schema with:
Generates validation schemas with:
1insomma \ 2 --connection "postgres://admin:secret@localhost:5432/ecommerce" \ 3 --orm prisma \ 4 --output prisma/schema.prisma \ 5 --verbose
1insomma \ 2 --connection "mysql://blogger:pass123@blog-db:3306/blog" \ 3 --orm typeorm \ 4 --output src/entities/index.ts
1insomma \ 2 --connection "postgres://analyst:data@analytics.internal:5432/metrics" \ 3 --orm drizzle \ 4 --output lib/schema.ts
1insomma \ 2 --connection "mysql://crm:secure@crm.company.com:3306/customer_data" \ 3 --orm zod \ 4 --output lib/validations.ts
The tool extracts comprehensive database metadata including:
The tool provides clear error messages for:
1# Test your connection first 2insomma test-connection --connection "your-connection-string" 3 4# Specify database type if auto-detection fails 5insomma test-connection --connection "your-connection-string" --type mysql
1# Force database type 2insomma --type postgres --connection "..." --orm prisma 3insomma --type mysql --connection "..." --orm prisma
1# Verify your API key is set 2echo $DEEPINFRA_API_KEY 3 4# Or pass it directly 5insomma --api-key "your-key" --connection "..." --orm prisma
1# Enable verbose output for debugging 2insomma --verbose --connection "..." --orm prisma
MIT License - see LICENSE file for details.
No vulnerabilities found.
No security vulnerabilities found.