You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CLAUDE.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -257,7 +257,7 @@ const result = await pool.query('SELECT * FROM users');
257
257
```
258
258
259
259
**ORM Integration:**
260
-
Works with Drizzle, Prisma, TypeORM - see [Lakebase Integration Docs](docs/docs/integrations/lakebase.md) for examples.
260
+
Works with Drizzle, Prisma, TypeORM - see the [`@databricks/lakebase` README](https://github.com/databricks/appkit/blob/main/packages/lakebase/README.md) for examples.
Copy file name to clipboardExpand all lines: docs/docs/api/appkit/index.md
+2Lines changed: 2 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -52,7 +52,9 @@ plugin architecture, and React integration.
52
52
| ------ | ------ |
53
53
|[ConfigSchema](TypeAlias.ConfigSchema.md)| Configuration schema definition for plugin config. Re-exported from the standard JSON Schema Draft 7 types. |
54
54
|[IAppRouter](TypeAlias.IAppRouter.md)| Express router type for plugin route registration |
When deploying as a Databricks App, `LAKEBASE_ENDPOINT` can be injected automatically via `valueFrom` in your app config:
178
+
179
+
```yaml
180
+
env:
181
+
- name: LAKEBASE_ENDPOINT
182
+
valueFrom: postgres
183
+
```
184
+
185
+
For the full configuration reference (SSL, pool size, timeouts, logging, ORM examples), see the [`@databricks/lakebase` README](https://github.com/databricks/appkit/blob/main/packages/lakebase/README.md).
186
+
187
+
#### Accessing the pool
188
+
189
+
After initialization, access Lakebase through the `AppKit.lakebase` object:
@@ -184,7 +266,7 @@ Exported from `@databricks/appkit`:
184
266
- `getWorkspaceId()`: `Promise<string>`(from `DATABRICKS_WORKSPACE_ID` or fetched)
185
267
- `isInUserContext()`: Returns `true` if currently executing in user context
186
268
187
-
####Development mode behavior
269
+
### Development mode behavior
188
270
189
271
In local development (`NODE_ENV=development`), if `asUser(req)` is called without a user token, it logs a warning and falls back to the service principal.
0 commit comments