UNPKG
@proofkit/cli
Version:
beta (2.0.0-beta.11)
latest (1.1.8)
2.0.0-beta.11
2.0.0-beta.9
2.0.0-beta.6
2.0.0-beta.5
2.0.0-beta.4
1.2.0-beta.2
1.2.0-beta.1
1.2.0-beta.0
1.1.8
1.1.6
1.1.5
1.0.0
1.0.0-beta.0
Create web application with the ProofKit stack
github.com/proofgeist/proofkit
proofgeist/proofkit
@proofkit/cli
/
template
/
extras
/
src
/
server
/
db
/
index-drizzle
/
with-planetscale.ts
8 lines
(5 loc)
•
255 B
text/typescript
View Raw
1
2
3
4
5
6
7
8
import
{
Client
}
from
"@planetscale/database"
;
import
{ drizzle }
from
"drizzle-orm/planetscale-serverless"
;
import
{ env }
from
"~/env"
;
import
*
as
schema
from
"./schema"
;
export
const
db =
drizzle
(
new
Client
({
url
: env.
DATABASE_URL
}), { schema });