Skip to content

Commit da030f2

Browse files
committed
chore: bump version to 1.0.9 in package.json, update .gitignore to include .DS_Store, and remove empty index.ts example file
1 parent 0efb8e1 commit da030f2

File tree

6 files changed

+282
-2
lines changed

6 files changed

+282
-2
lines changed

.gitignore

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
/dist
2-
/node_modules
2+
.DS_Store
3+
node_modules
34
bun.lockb
45
package-lock.json

examples/index.ts

Whitespace-only changes.

examples/sqlkit-node-pg/index.js

+22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
const sqlkit = require("sqlkit");
2+
const pg = require("pg");
3+
4+
async function main() {
5+
const pool = new pg.Pool({
6+
host: "localhost",
7+
port: 5432,
8+
user: "rayhan",
9+
password: "rayhan123",
10+
database: "tinyorm_test",
11+
});
12+
const executor = new sqlkit.PostgresAdapter(pool);
13+
14+
const repo = new sqlkit.Repository("users", executor);
15+
16+
console.log(
17+
await repo.findRows({
18+
limit: 10,
19+
})
20+
);
21+
}
22+
main();

examples/sqlkit-node-pg/package.json

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
{
2+
"name": "sqlkit-node",
3+
"version": "1.0.0",
4+
"description": "",
5+
"license": "ISC",
6+
"author": "kingrayhan",
7+
"type": "commonjs",
8+
"main": "index.js",
9+
"scripts": {
10+
"test": "echo \"Error: no test specified\" && exit 1"
11+
},
12+
"dependencies": {
13+
"pg": "^8.14.1",
14+
"sqlkit": "^1.0.9"
15+
},
16+
"devDependencies": {
17+
"@types/pg": "^8.11.13"
18+
}
19+
}

0 commit comments

Comments
 (0)