UNPKG
@oleksiiteplenko/tt
Version:
latest (0.8.0)
0.8.0
0.7.0
0.6.0
0.5.0
0.4.0
0.3.0
0.2.0
0.1.1
0.1.0
CLI tool for tracking time on projects.
oleksiiteplenko/tt
@oleksiiteplenko/tt
/
src
/
db.ts
10 lines
(6 loc)
•
245 B
text/typescript
View Raw
1
2
3
4
5
6
7
8
9
10
import
{
Database
}
from
"bun:sqlite"
;
import
{ drizzle }
from
"drizzle-orm/bun-sqlite"
;
import
{ dbPath }
from
'./utils/dbPath'
;
const
sqlite =
new
Database
(dbPath); sqlite.
run
(
'PRAGMA foreign_keys = ON'
);
export
const
db =
drizzle
(sqlite);