@agentuity/drizzle 3.0.0-alpha.7 → 3.0.0-beta.1
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.
- package/AGENTS.md +0 -20
- package/README.md +4 -19
- package/dist/index.d.ts +7 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +7 -2
- package/dist/index.js.map +1 -1
- package/package.json +6 -5
- package/src/index.ts +7 -2
package/AGENTS.md
CHANGED
|
@@ -64,22 +64,6 @@ const raw = await client`SELECT NOW()`;
|
|
|
64
64
|
await close();
|
|
65
65
|
```
|
|
66
66
|
|
|
67
|
-
## Integration with @agentuity/auth
|
|
68
|
-
|
|
69
|
-
```typescript
|
|
70
|
-
import { createPostgresDrizzle, drizzleAdapter } from '@agentuity/drizzle';
|
|
71
|
-
import { createAuth } from '@agentuity/auth';
|
|
72
|
-
import * as schema from './schema';
|
|
73
|
-
|
|
74
|
-
const { db, close } = createPostgresDrizzle({ schema });
|
|
75
|
-
|
|
76
|
-
const auth = createAuth({
|
|
77
|
-
database: drizzleAdapter(db, {
|
|
78
|
-
provider: 'pg',
|
|
79
|
-
}),
|
|
80
|
-
});
|
|
81
|
-
```
|
|
82
|
-
|
|
83
67
|
## Re-exports
|
|
84
68
|
|
|
85
69
|
This package re-exports commonly used items for convenience:
|
|
@@ -101,10 +85,6 @@ This package re-exports commonly used items for convenience:
|
|
|
101
85
|
- Column types: `text`, `integer`, `serial`, `boolean`, `timestamp`, `uuid`, `json`, `jsonb`, etc.
|
|
102
86
|
- Constraints: `primaryKey`, `foreignKey`, `unique`, `uniqueIndex`, `index`, `check`
|
|
103
87
|
|
|
104
|
-
### From better-auth
|
|
105
|
-
|
|
106
|
-
- `drizzleAdapter` - For use with @agentuity/auth
|
|
107
|
-
|
|
108
88
|
## Testing
|
|
109
89
|
|
|
110
90
|
- Tests require a running PostgreSQL instance
|
package/README.md
CHANGED
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
# @agentuity/drizzle
|
|
2
2
|
|
|
3
|
+
> **⚠️ DEPRECATED** — Use `drizzle-orm` and `@neondatabase/serverless` directly with your `DATABASE_URL`.
|
|
4
|
+
>
|
|
5
|
+
> This package is no longer recommended for new projects.
|
|
6
|
+
|
|
3
7
|
Drizzle ORM integration with resilient PostgreSQL connections for Agentuity projects.
|
|
4
8
|
|
|
5
9
|
## Installation
|
|
@@ -13,7 +17,6 @@ bun add @agentuity/drizzle
|
|
|
13
17
|
- **Type-safe queries** - Full TypeScript support with Drizzle ORM's schema inference
|
|
14
18
|
- **Automatic reconnection** - Built on @agentuity/postgres with exponential backoff
|
|
15
19
|
- **Convenient re-exports** - Common Drizzle utilities available from a single import
|
|
16
|
-
- **Auth integration** - Works seamlessly with @agentuity/auth via drizzleAdapter
|
|
17
20
|
|
|
18
21
|
## Basic Usage
|
|
19
22
|
|
|
@@ -76,24 +79,6 @@ console.log(client.stats);
|
|
|
76
79
|
// { connected: true, reconnecting: false, totalConnections: 1, ... }
|
|
77
80
|
```
|
|
78
81
|
|
|
79
|
-
## Using with @agentuity/auth
|
|
80
|
-
|
|
81
|
-
```typescript
|
|
82
|
-
import { createPostgresDrizzle, drizzleAdapter } from '@agentuity/drizzle';
|
|
83
|
-
import { createAuth } from '@agentuity/auth';
|
|
84
|
-
import * as schema from './schema';
|
|
85
|
-
|
|
86
|
-
// Create database instance
|
|
87
|
-
const { db, close } = createPostgresDrizzle({ schema });
|
|
88
|
-
|
|
89
|
-
// Create auth with Drizzle adapter
|
|
90
|
-
const auth = createAuth({
|
|
91
|
-
database: drizzleAdapter(db, {
|
|
92
|
-
provider: 'pg',
|
|
93
|
-
}),
|
|
94
|
-
});
|
|
95
|
-
```
|
|
96
|
-
|
|
97
82
|
## Accessing the Underlying Client
|
|
98
83
|
|
|
99
84
|
The `client` property gives you access to the @agentuity/postgres client for raw queries:
|
package/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,12 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @agentuity/drizzle -
|
|
2
|
+
* @agentuity/drizzle - DEPRECATED
|
|
3
3
|
*
|
|
4
|
-
*
|
|
4
|
+
* Use drizzle-orm and @neondatabase/serverless directly with your DATABASE_URL.
|
|
5
|
+
* This package is no longer recommended for new projects.
|
|
6
|
+
*
|
|
7
|
+
* ~~Drizzle ORM integration with resilient PostgreSQL connections~~
|
|
8
|
+
*
|
|
9
|
+
* This package provided a seamless integration between Drizzle ORM and
|
|
5
10
|
* @agentuity/postgres, combining type-safe database queries with automatic
|
|
6
11
|
* reconnection capabilities.
|
|
7
12
|
*
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAoCG;AAGH,OAAO,EAAE,qBAAqB,EAAE,OAAO,EAAE,MAAM,eAAe,CAAC;AAG/D,YAAY,EAAE,qBAAqB,EAAE,eAAe,EAAE,iBAAiB,EAAE,MAAM,YAAY,CAAC;AAG5F,OAAO,EACN,QAAQ,EACR,cAAc,EACd,KAAK,sBAAsB,EAC3B,KAAK,cAAc,EACnB,KAAK,eAAe,EACpB,KAAK,eAAe,EACpB,KAAK,SAAS,EACd,KAAK,kBAAkB,EACvB,KAAK,cAAc,GACnB,MAAM,qBAAqB,CAAC;AAG7B,OAAO,EACN,GAAG,EACH,EAAE,EACF,GAAG,EACH,EAAE,EACF,GAAG,EACH,IAAI,EACJ,GAAG,EACH,EAAE,EACF,GAAG,EACH,EAAE,EACF,GAAG,EACH,EAAE,EACF,MAAM,EACN,SAAS,EACT,OAAO,EACP,UAAU,EACV,OAAO,EACP,IAAI,EACJ,KAAK,EACL,SAAS,GACT,MAAM,aAAa,CAAC;AAGrB,YAAY,EACX,cAAc,EACd,mBAAmB,EACnB,aAAa,EACb,iBAAiB,GACjB,MAAM,qBAAqB,CAAC;AAG7B,OAAO,EACN,OAAO,EACP,QAAQ,EACR,MAAM,EACN,MAAM,EAEN,MAAM,EACN,SAAS,EACT,OAAO,EACP,MAAM,EACN,IAAI,EACJ,IAAI,EACJ,UAAU,EACV,IAAI,EACJ,eAAe,EACf,IAAI,EACJ,OAAO,EACP,QAAQ,EACR,IAAI,EACJ,KAAK,EACL,OAAO,EACP,QAAQ,EACR,OAAO,EACP,IAAI,EACJ,MAAM,EACN,QAAQ,EACR,WAAW,EACX,IAAI,EACJ,IAAI,EACJ,SAAS,EACT,IAAI,EACJ,OAAO,EAEP,UAAU,EACV,UAAU,EACV,MAAM,EACN,WAAW,EACX,KAAK,EACL,KAAK,GACL,MAAM,qBAAqB,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -1,7 +1,12 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @agentuity/drizzle -
|
|
2
|
+
* @agentuity/drizzle - DEPRECATED
|
|
3
3
|
*
|
|
4
|
-
*
|
|
4
|
+
* Use drizzle-orm and @neondatabase/serverless directly with your DATABASE_URL.
|
|
5
|
+
* This package is no longer recommended for new projects.
|
|
6
|
+
*
|
|
7
|
+
* ~~Drizzle ORM integration with resilient PostgreSQL connections~~
|
|
8
|
+
*
|
|
9
|
+
* This package provided a seamless integration between Drizzle ORM and
|
|
5
10
|
* @agentuity/postgres, combining type-safe database queries with automatic
|
|
6
11
|
* reconnection capabilities.
|
|
7
12
|
*
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAoCG;AAEH,wBAAwB;AACxB,OAAO,EAAE,qBAAqB,EAAE,OAAO,EAAE,MAAM,eAAe,CAAC;AAK/D,qDAAqD;AACrD,OAAO,EACN,QAAQ,EACR,cAAc,GAQd,MAAM,qBAAqB,CAAC;AAE7B,qDAAqD;AACrD,OAAO,EACN,GAAG,EACH,EAAE,EACF,GAAG,EACH,EAAE,EACF,GAAG,EACH,IAAI,EACJ,GAAG,EACH,EAAE,EACF,GAAG,EACH,EAAE,EACF,GAAG,EACH,EAAE,EACF,MAAM,EACN,SAAS,EACT,OAAO,EACP,UAAU,EACV,OAAO,EACP,IAAI,EACJ,KAAK,EACL,SAAS,GACT,MAAM,aAAa,CAAC;AAUrB,iDAAiD;AACjD,OAAO,EACN,OAAO,EACP,QAAQ,EACR,MAAM,EACN,MAAM;AACN,eAAe;AACf,MAAM,EACN,SAAS,EACT,OAAO,EACP,MAAM,EACN,IAAI,EACJ,IAAI,EACJ,UAAU,EACV,IAAI,EACJ,eAAe,EACf,IAAI,EACJ,OAAO,EACP,QAAQ,EACR,IAAI,EACJ,KAAK,EACL,OAAO,EACP,QAAQ,EACR,OAAO,EACP,IAAI,EACJ,MAAM,EACN,QAAQ,EACR,WAAW,EACX,IAAI,EACJ,IAAI,EACJ,SAAS,EACT,IAAI,EACJ,OAAO;AACP,0BAA0B;AAC1B,UAAU,EACV,UAAU,EACV,MAAM,EACN,WAAW,EACX,KAAK,EACL,KAAK,GACL,MAAM,qBAAqB,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@agentuity/drizzle",
|
|
3
|
-
"
|
|
3
|
+
"deprecated": "Use drizzle-orm and @neondatabase/serverless directly with your DATABASE_URL.",
|
|
4
|
+
"version": "3.0.0-beta.1",
|
|
4
5
|
"license": "Apache-2.0",
|
|
5
6
|
"author": "Agentuity employees and contributors",
|
|
6
7
|
"type": "module",
|
|
@@ -41,12 +42,12 @@
|
|
|
41
42
|
"prepublishOnly": "bun run clean && bun run build"
|
|
42
43
|
},
|
|
43
44
|
"dependencies": {
|
|
44
|
-
"@agentuity/core": "3.0.0-
|
|
45
|
-
"@agentuity/postgres": "3.0.0-
|
|
45
|
+
"@agentuity/core": "3.0.0-beta.1",
|
|
46
|
+
"@agentuity/postgres": "3.0.0-beta.1",
|
|
46
47
|
"drizzle-orm": "^0.45.0"
|
|
47
48
|
},
|
|
48
49
|
"devDependencies": {
|
|
49
|
-
"@agentuity/test-utils": "3.0.0-
|
|
50
|
+
"@agentuity/test-utils": "3.0.0-beta.1",
|
|
50
51
|
"@types/bun": "latest",
|
|
51
52
|
"bun-types": "latest",
|
|
52
53
|
"typescript": "^5.9.0"
|
|
@@ -57,7 +58,7 @@
|
|
|
57
58
|
"sideEffects": false,
|
|
58
59
|
"repository": {
|
|
59
60
|
"type": "git",
|
|
60
|
-
"url": "https://github.com/agentuity/sdk.git",
|
|
61
|
+
"url": "git+https://github.com/agentuity/sdk.git",
|
|
61
62
|
"directory": "packages/drizzle"
|
|
62
63
|
}
|
|
63
64
|
}
|
package/src/index.ts
CHANGED
|
@@ -1,7 +1,12 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @agentuity/drizzle -
|
|
2
|
+
* @agentuity/drizzle - DEPRECATED
|
|
3
3
|
*
|
|
4
|
-
*
|
|
4
|
+
* Use drizzle-orm and @neondatabase/serverless directly with your DATABASE_URL.
|
|
5
|
+
* This package is no longer recommended for new projects.
|
|
6
|
+
*
|
|
7
|
+
* ~~Drizzle ORM integration with resilient PostgreSQL connections~~
|
|
8
|
+
*
|
|
9
|
+
* This package provided a seamless integration between Drizzle ORM and
|
|
5
10
|
* @agentuity/postgres, combining type-safe database queries with automatic
|
|
6
11
|
* reconnection capabilities.
|
|
7
12
|
*
|