@agentuity/drizzle 3.0.0-beta.0 → 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 +0 -19
- package/package.json +4 -4
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
|
@@ -17,7 +17,6 @@ bun add @agentuity/drizzle
|
|
|
17
17
|
- **Type-safe queries** - Full TypeScript support with Drizzle ORM's schema inference
|
|
18
18
|
- **Automatic reconnection** - Built on @agentuity/postgres with exponential backoff
|
|
19
19
|
- **Convenient re-exports** - Common Drizzle utilities available from a single import
|
|
20
|
-
- **Auth integration** - Works seamlessly with @agentuity/auth via drizzleAdapter
|
|
21
20
|
|
|
22
21
|
## Basic Usage
|
|
23
22
|
|
|
@@ -80,24 +79,6 @@ console.log(client.stats);
|
|
|
80
79
|
// { connected: true, reconnecting: false, totalConnections: 1, ... }
|
|
81
80
|
```
|
|
82
81
|
|
|
83
|
-
## Using with @agentuity/auth
|
|
84
|
-
|
|
85
|
-
```typescript
|
|
86
|
-
import { createPostgresDrizzle, drizzleAdapter } from '@agentuity/drizzle';
|
|
87
|
-
import { createAuth } from '@agentuity/auth';
|
|
88
|
-
import * as schema from './schema';
|
|
89
|
-
|
|
90
|
-
// Create database instance
|
|
91
|
-
const { db, close } = createPostgresDrizzle({ schema });
|
|
92
|
-
|
|
93
|
-
// Create auth with Drizzle adapter
|
|
94
|
-
const auth = createAuth({
|
|
95
|
-
database: drizzleAdapter(db, {
|
|
96
|
-
provider: 'pg',
|
|
97
|
-
}),
|
|
98
|
-
});
|
|
99
|
-
```
|
|
100
|
-
|
|
101
82
|
## Accessing the Underlying Client
|
|
102
83
|
|
|
103
84
|
The `client` property gives you access to the @agentuity/postgres client for raw queries:
|
package/package.json
CHANGED
|
@@ -1,7 +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.
|
|
4
|
+
"version": "3.0.0-beta.1",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"author": "Agentuity employees and contributors",
|
|
7
7
|
"type": "module",
|
|
@@ -42,12 +42,12 @@
|
|
|
42
42
|
"prepublishOnly": "bun run clean && bun run build"
|
|
43
43
|
},
|
|
44
44
|
"dependencies": {
|
|
45
|
-
"@agentuity/core": "3.0.0-beta.
|
|
46
|
-
"@agentuity/postgres": "3.0.0-beta.
|
|
45
|
+
"@agentuity/core": "3.0.0-beta.1",
|
|
46
|
+
"@agentuity/postgres": "3.0.0-beta.1",
|
|
47
47
|
"drizzle-orm": "^0.45.0"
|
|
48
48
|
},
|
|
49
49
|
"devDependencies": {
|
|
50
|
-
"@agentuity/test-utils": "3.0.0-beta.
|
|
50
|
+
"@agentuity/test-utils": "3.0.0-beta.1",
|
|
51
51
|
"@types/bun": "latest",
|
|
52
52
|
"bun-types": "latest",
|
|
53
53
|
"typescript": "^5.9.0"
|