Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ghall89/drizzle-bun
A simple db setup using Drizzle with Bun's built-in SQLite API.
https://github.com/ghall89/drizzle-bun
Last synced: 2 months ago
JSON representation
A simple db setup using Drizzle with Bun's built-in SQLite API.
- Host: GitHub
- URL: https://github.com/ghall89/drizzle-bun
- Owner: ghall89
- Created: 2024-06-02T15:34:05.000Z (5 months ago)
- Default Branch: main
- Last Pushed: 2024-06-08T17:34:27.000Z (5 months ago)
- Last Synced: 2024-06-08T18:48:05.069Z (5 months ago)
- Language: TypeScript
- Size: 18.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# drizzle-bun
A simple db setup using Drizzle and Bun's built-in SQLite API.
## Setup
The only prerequisite for setting up this repo is having [Bun](https://bun.sh/) installed on your computer.
1. Run `bun install` to install dependencies
2. Run `bun run push` to generate the SQLite database## Usage
Initially, there will be no data in the database. You can generate data by running `bun run generate`, and view your generated data with `bun run read`
## Additional Notes
If you make any changes to the schema (located in `./src/schema/ts`) be sure to run `bun run migrate` to apply your changes to your db.