|
3 | 3 | "name": "lakebase", |
4 | 4 | "displayName": "Lakebase", |
5 | 5 | "description": "SQL query execution against Databricks Lakebase Autoscaling", |
| 6 | + "onSetupMessage": "Run 'databricks postgres list-branches projects/{project-id}' to find your Lakebase branch.", |
| 7 | + "postScaffold": [ |
| 8 | + { |
| 9 | + "step": 1, |
| 10 | + "instruction": "Define your schema in server/server.ts startup" |
| 11 | + }, |
| 12 | + { |
| 13 | + "step": 2, |
| 14 | + "instruction": "Write tRPC procedures using pool.query() in server/server.ts" |
| 15 | + }, |
| 16 | + { |
| 17 | + "step": 3, |
| 18 | + "instruction": "Build React frontend consuming tRPC procedures" |
| 19 | + }, |
| 20 | + { |
| 21 | + "step": 4, |
| 22 | + "instruction": "Update tests/smoke.spec.ts selectors for your app" |
| 23 | + } |
| 24 | + ], |
6 | 25 | "hidden": false, |
7 | 26 | "resources": { |
8 | 27 | "required": [ |
|
15 | 34 | "fields": { |
16 | 35 | "branch": { |
17 | 36 | "description": "Full Lakebase Postgres branch resource name. Obtain by running `databricks postgres list-branches projects/{project-id}`, select the desired item from the output array and use its .name value.", |
18 | | - "examples": ["projects/{project-id}/branches/{branch-id}"] |
| 37 | + "examples": ["projects/{project-id}/branches/{branch-id}"], |
| 38 | + "discovery": { |
| 39 | + "cliCommand": "databricks postgres list-branches projects/{project-id} --profile <PROFILE> -o json", |
| 40 | + "selectField": ".name" |
| 41 | + }, |
| 42 | + "resolution": "user-provided" |
19 | 43 | }, |
20 | 44 | "database": { |
21 | | - "description": "Full Lakebase Postgres database resource name. Obtain by running `databricks postgres list-databases {branch-name}`, select the desired item from the output array and use its .name value. Requires the branch resource name.", |
| 45 | + "description": "Full Lakebase Postgres database resource name for the selected branch.", |
22 | 46 | "examples": [ |
23 | 47 | "projects/{project-id}/branches/{branch-id}/databases/{database-id}" |
24 | | - ] |
| 48 | + ], |
| 49 | + "resolution": "user-provided" |
25 | 50 | }, |
26 | 51 | "host": { |
27 | 52 | "env": "PGHOST", |
28 | 53 | "localOnly": true, |
29 | 54 | "resolve": "postgres:host", |
30 | | - "description": "Postgres host for local development. Auto-injected by the platform at deploy time." |
| 55 | + "description": "Postgres host for local development. Auto-injected by the platform at deploy time.", |
| 56 | + "resolution": "platform-injected" |
31 | 57 | }, |
32 | 58 | "databaseName": { |
33 | 59 | "env": "PGDATABASE", |
34 | 60 | "localOnly": true, |
35 | 61 | "resolve": "postgres:databaseName", |
36 | | - "description": "Postgres database name for local development. Auto-injected by the platform at deploy time." |
| 62 | + "description": "Postgres database name for local development. Auto-injected by the platform at deploy time.", |
| 63 | + "resolution": "platform-injected" |
37 | 64 | }, |
38 | 65 | "endpointPath": { |
39 | 66 | "env": "LAKEBASE_ENDPOINT", |
|
42 | 69 | "description": "Lakebase endpoint resource name. Auto-injected at runtime via app.yaml valueFrom: postgres. For local development, obtain by running `databricks postgres list-endpoints {branch-name}`, select the desired item from the output array and use its .name value.", |
43 | 70 | "examples": [ |
44 | 71 | "projects/{project-id}/branches/{branch-id}/endpoints/{endpoint-id}" |
45 | | - ] |
| 72 | + ], |
| 73 | + "discovery": { |
| 74 | + "cliCommand": "databricks postgres list-endpoints {branch} --profile <PROFILE> -o json", |
| 75 | + "selectField": ".name", |
| 76 | + "dependsOn": "branch" |
| 77 | + }, |
| 78 | + "resolution": "user-provided" |
46 | 79 | }, |
47 | 80 | "port": { |
48 | 81 | "env": "PGPORT", |
49 | 82 | "localOnly": true, |
50 | 83 | "value": "5432", |
51 | | - "description": "Postgres port. Auto-injected by the platform at deploy time." |
| 84 | + "description": "Postgres port. Auto-injected by the platform at deploy time.", |
| 85 | + "resolution": "platform-injected" |
52 | 86 | }, |
53 | 87 | "sslmode": { |
54 | 88 | "env": "PGSSLMODE", |
55 | 89 | "localOnly": true, |
56 | 90 | "value": "require", |
57 | | - "description": "Postgres SSL mode. Auto-injected by the platform at deploy time." |
| 91 | + "description": "Postgres SSL mode. Auto-injected by the platform at deploy time.", |
| 92 | + "resolution": "platform-injected" |
58 | 93 | } |
59 | 94 | } |
60 | 95 | } |
|
0 commit comments