https://github.com/codemonument/planetscale-in-fresh-poc
A demo repo for testing planetscale with deno in fresh
https://github.com/codemonument/planetscale-in-fresh-poc
deno deno-fresh fresh planetscale
Last synced: about 2 months ago
JSON representation
A demo repo for testing planetscale with deno in fresh
- Host: GitHub
- URL: https://github.com/codemonument/planetscale-in-fresh-poc
- Owner: codemonument
- Created: 2022-09-18T21:33:42.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2023-03-04T15:19:19.000Z (over 3 years ago)
- Last Synced: 2025-08-10T00:57:35.672Z (11 months ago)
- Topics: deno, deno-fresh, fresh, planetscale
- Language: TypeScript
- Homepage: https://planetscale-demo.deno.dev
- Size: 133 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
Awesome Lists containing this project
README
# planetscale-in-deno PoC
Live Version on Deno Deploy: https://planetscale-in.deno.dev/
## Todos
- Deploy on deno deploy
- find / write adapter for doppler usage from within deno!
- Switch from twind to openprops!
## Base Data
Database Region: AWS eu-cenral-1 (Frankfurt)
Name: jbscratch_planetscale-in-deno
URL: https://app.planetscale.com/bjesuiter/jbscratch_planetscale-in-deno
Login Credentials: [See doppler account (private)](https://dashboard.doppler.com/workplace/f867183ebfa5d4d1e007/projects/planetscale-in-deno)
Planetscale Schema: https://app.planetscale.com/bjesuiter/jbscratch_planetscale-in-deno/main/schema
## Tech
- @planetscale/database - HTTP API for Planetscale
- kysely - SQL Query Builder
- [kysely-planetscale](https://github.com/depot/kysely-planetscale) => Database Adapter via Planetscale HTTP Entrypoint
- [pscale-cli](https://planetscale.com/docs/tutorials/connect-any-application)
`brew install planetscale/tap/pscale`
## Going Further
- [kysely-codegen](https://github.com/RobinBlomberg/kysely-codegen) => generate TS Types from Database Schema
(only for experimenting, may be not advisable in Prod)
## Maintainer Links
- Deno Deploy Dashboard: https://dash.deno.com/projects/planetscale-in
## Repo Log
### 2022-09-18 Create first Table
Create Table Example: https://www.w3schools.com/sql/sql_create_table.asp
```
deno task db-shell
CREATE TABLE `pets` (id int, name varchar(200));
```