Skip to content

Auto Imports and Aliases

Aliases

  • #changeName/server/drizzle
  • #changeName/server/drizzle/**
  • #changeName/server/drizzle/storage
  • #changeName/server/drizzle/schema

changeName

changeName is the name of your project. Please change it to your project name.

Auto Imports functions

pergelChangeName().drizzle() ...

ts
export default 
defineEventHandler
(async (
event
) => {
const
connect
= await
changeNameDbConnect
()
const
result
=
connect
.select().from(
changeNameTables
.
user
)
return {
statusCode
: 200,
body
:
result
,
} })

changeNameTables

This is the table schema. It is automatically generated from the database schema. server/drizzle-changeName/index.ts is automatically added to the server.

ts
const 
table
=
changeNameTables
.

 

 

 

changeNameDrizzleStorage

server/drizzle-changeName/index.ts is automatically added to the server.

Storage is automatically added to the server.

ts
export default 
defineEventHandler
(async () => {
const
db
= await
changeNameDbConnect
()
const
store
=
changeNameDrizzleStorage
({
db
}) return {
statusCode
: 200,
} })

Released under the MIT License.