Code & Deploy
siGit Code
Git Hosting
Toggle menu
siGit Code
Git Hosting
Sign in
Sign in
@devries-cameron20
/
t3code-1
Fork
0
The best way to control Claude Code, Codex and more from any computer or phone
t3code-1
/
.repos
/
alchemy-effect
/
packages
/
cloudflare-runtime
/
src
/
rolldown
/
test
/
fixtures
/
regression
/
mysql2.ts
Code
Commits
Issues
Pulls
Cloud Agent
CICD
main
main
ts
13 lines
272 Bytes
Copy permalink
Copy
Raw
1
import
mysql2
from
"
mysql2
"
;
2
3
interface
Env
{
4
DATABASE_URL
:
string
;
5
}
6
7
export
default
{
8
fetch
(
_request
:
Request
,
env
:
Env
)
{
9
const
db
=
mysql2
.
createConnection
(
env
.
DATABASE_URL
);
10
const
result
=
db
.
execute
(
"
SELECT 1
"
);
11
return
Response
.
json
(
result
);
12
},
13
};