Skip to content

Commit 6cd9b9c

Browse files
committed
Add optional database_host and database_name to store metadata
- Enables bidirectional mapping between object stores and databases - Fields are informational only, not enforced at runtime - Alternative: admins ensure unique project_name across namespace - Managed platforms may handle this mapping externally
1 parent c340ec7 commit 6cd9b9c

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

docs/src/design/tables/file-type-spec.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,9 @@ s3://bucket/my_project/datajoint_store.json
170170
"project_name": "my_project",
171171
"created": "2025-01-15T10:30:00Z",
172172
"format_version": "1.0",
173-
"datajoint_version": "0.15.0"
173+
"datajoint_version": "0.15.0",
174+
"database_host": "db.example.com",
175+
"database_name": "my_project_db"
174176
}
175177
```
176178

@@ -182,6 +184,10 @@ s3://bucket/my_project/datajoint_store.json
182184
| `created` | string | Yes | ISO 8601 timestamp of store creation |
183185
| `format_version` | string | Yes | Store format version for compatibility |
184186
| `datajoint_version` | string | Yes | DataJoint version that created the store |
187+
| `database_host` | string | No | Database server hostname (for bidirectional mapping) |
188+
| `database_name` | string | No | Database name (for bidirectional mapping) |
189+
190+
The optional `database_host` and `database_name` fields enable bidirectional mapping between object stores and databases. This is informational only - not enforced at runtime. Administrators can alternatively ensure unique `project_name` values across their namespace, and managed platforms may handle this mapping externally.
185191

186192
### Store Initialization
187193

0 commit comments

Comments
 (0)