@flightdev/db 0.0.2 → 0.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,5 +1,5 @@
1
1
 
2
- > @flightdev/db@0.0.2 build E:\testear framework\Flight\packages\db
2
+ > @flightdev/db@0.0.3 build E:\testear framework\Flight\packages\db
3
3
  > tsup
4
4
 
5
5
  CLI Building entry: src/d1.ts, src/index.ts, src/neon.ts, src/postgres.ts, src/supabase.ts, src/turso.ts
@@ -9,15 +9,15 @@
9
9
  CLI Target: node20
10
10
  CLI Cleaning output folder
11
11
  ESM Build start
12
- ESM dist\index.js 402.00 B
13
- ESM dist\postgres.js 2.39 KB
12
+ ESM dist\d1.js 2.51 KB
14
13
  ESM dist\neon.js 2.96 KB
14
+ ESM dist\postgres.js 2.39 KB
15
15
  ESM dist\supabase.js 1.93 KB
16
- ESM dist\d1.js 2.51 KB
17
16
  ESM dist\turso.js 2.70 KB
17
+ ESM dist\index.js 402.00 B
18
18
  ESM ⚡️ Build success in 23ms
19
19
  DTS Build start
20
- DTS ⚡️ Build success in 6371ms
20
+ DTS ⚡️ Build success in 6069ms
21
21
  DTS dist\d1.d.ts 1.53 KB
22
22
  DTS dist\neon.d.ts 857.00 B
23
23
  DTS dist\postgres.d.ts 907.00 B
package/CHANGELOG.md CHANGED
@@ -1,4 +1,4 @@
1
- # @flight-framework/db
1
+ # @flightdev/db
2
2
 
3
3
  ## 0.0.2
4
4
 
package/README.md CHANGED
@@ -1,11 +1,11 @@
1
- # @flight-framework/db
1
+ # @flightdev/db
2
2
 
3
3
  Database abstraction layer for Flight Framework. Connect to any database with a unified, type-safe API.
4
4
 
5
5
  ## Installation
6
6
 
7
7
  ```bash
8
- npm install @flight-framework/db
8
+ npm install @flightdev/db
9
9
  ```
10
10
 
11
11
  Install the driver for your database:
@@ -27,8 +27,8 @@ npm install @supabase/supabase-js
27
27
  ## Quick Start
28
28
 
29
29
  ```typescript
30
- import { createDb } from '@flight-framework/db';
31
- import { postgres } from '@flight-framework/db/postgres';
30
+ import { createDb } from '@flightdev/db';
31
+ import { postgres } from '@flightdev/db/postgres';
32
32
 
33
33
  const db = createDb(postgres({
34
34
  connectionString: process.env.DATABASE_URL,
@@ -50,7 +50,7 @@ console.log(users.rows);
50
50
  Standard PostgreSQL driver using `pg` with connection pooling.
51
51
 
52
52
  ```typescript
53
- import { postgres } from '@flight-framework/db/postgres';
53
+ import { postgres } from '@flightdev/db/postgres';
54
54
 
55
55
  const driver = postgres({
56
56
  connectionString: 'postgresql://user:pass@localhost:5432/mydb',
@@ -71,7 +71,7 @@ const driver = postgres({
71
71
  Cloud SQLite with Turso or local SQLite files.
72
72
 
73
73
  ```typescript
74
- import { turso } from '@flight-framework/db/turso';
74
+ import { turso } from '@flightdev/db/turso';
75
75
 
76
76
  // Turso Cloud
77
77
  const cloud = turso({
@@ -90,7 +90,7 @@ const local = turso({
90
90
  Edge-compatible PostgreSQL for serverless environments.
91
91
 
92
92
  ```typescript
93
- import { neon } from '@flight-framework/db/neon';
93
+ import { neon } from '@flightdev/db/neon';
94
94
 
95
95
  // HTTP mode (recommended for serverless)
96
96
  const http = neon({
@@ -110,7 +110,7 @@ const ws = neon({
110
110
  Direct database access with Supabase's query builder.
111
111
 
112
112
  ```typescript
113
- import { supabase } from '@flight-framework/db/supabase';
113
+ import { supabase } from '@flightdev/db/supabase';
114
114
 
115
115
  const driver = supabase({
116
116
  url: process.env.SUPABASE_URL,
@@ -124,7 +124,7 @@ const driver = supabase({
124
124
  Native Cloudflare D1 support for edge SQLite.
125
125
 
126
126
  ```typescript
127
- import { d1 } from '@flight-framework/db/d1';
127
+ import { d1 } from '@flightdev/db/d1';
128
128
 
129
129
  export default {
130
130
  async fetch(request, env) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@flightdev/db",
3
- "version": "0.0.2",
3
+ "version": "0.0.3",
4
4
  "description": "Flight Database Abstraction Layer - Agnostic database adapters",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -68,6 +68,12 @@
68
68
  "optional": true
69
69
  }
70
70
  },
71
+ "homepage": "https://github.com/EliosLT/FlightDev",
72
+ "repository": {
73
+ "url": "https://github.com/EliosLT/FlightDev.git",
74
+ "directory": "packages/db",
75
+ "type": "git"
76
+ },
71
77
  "scripts": {
72
78
  "build": "tsup",
73
79
  "dev": "tsup --watch",