@malloy-publisher/sdk 0.10.3 → 0.10.5
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/dist/client/api.d.ts +6 -6
- package/package.json +1 -1
package/dist/client/api.d.ts
CHANGED
|
@@ -207,7 +207,7 @@ export interface BigqueryConnection {
|
|
|
207
207
|
export interface BuildGraph {
|
|
208
208
|
'connectionName': string;
|
|
209
209
|
/**
|
|
210
|
-
*
|
|
210
|
+
* A single level holding every persist source of the graph, in build order. Each node\'s `dependsOn` names every source on every table it reads, so the edges are complete without walking anything.
|
|
211
211
|
*/
|
|
212
212
|
'nodes': Array<Array<BuildNode>>;
|
|
213
213
|
}
|
|
@@ -284,16 +284,16 @@ export interface BuildNode {
|
|
|
284
284
|
*/
|
|
285
285
|
'sourceID': string;
|
|
286
286
|
/**
|
|
287
|
-
*
|
|
287
|
+
* sourceIDs of the sources on the tables this source reads. Sources on one table (a source and its extensions) read none of each other. A source Malloy cannot plan, which is refused rather than built, lists none.
|
|
288
288
|
*/
|
|
289
289
|
'dependsOn'?: Array<string>;
|
|
290
290
|
}
|
|
291
291
|
/**
|
|
292
|
-
* The package\'s persist build plan
|
|
292
|
+
* The package\'s persist build plan, from Malloy\'s build targets: the order its persist sources build in, the tables each reads, and the minimal per-source detail a caller needs to assign identity/naming/realization. Policy and connection capability are intentionally omitted until they carry real data.
|
|
293
293
|
*/
|
|
294
294
|
export interface BuildPlan {
|
|
295
295
|
/**
|
|
296
|
-
* Dependency-ordered build graphs. One per connection per model, not one per connection: a model contributes a graph for each connection its
|
|
296
|
+
* Dependency-ordered build graphs. One per connection per model, not one per connection: a model contributes a graph for each connection its persist sources use, and a package\'s plan concatenates every model\'s, so the same source appears in the graph of every model that imports it.
|
|
297
297
|
*/
|
|
298
298
|
'graphs': Array<BuildGraph>;
|
|
299
299
|
/**
|
|
@@ -514,7 +514,7 @@ export interface Connection {
|
|
|
514
514
|
*/
|
|
515
515
|
'withheldFields'?: Array<string>;
|
|
516
516
|
/**
|
|
517
|
-
* Serve this DuckLake connection as a catalog of its own tables, as an orchestrator that provisions catalogs does. Two effects. Its session gets `SET search_path = \'<name>.main\'` after the attach, so a model\'s `<name>.table(\'t\')`, which compiles to the bare table name, resolves inside the catalog: DuckDB does not search an attached catalog for an unqualified name otherwise. Each statement run on it emits a `statement_usage` log record and counts in `publisher_statement_usage_total`, for whoever meters the catalog. And raw SQL on it runs only as a single SELECT: `sqlQuery` and `sqlSource` answer 400 for anything else (another statement type, or more than one statement), and `sqlTemporaryTable` answers 400 always. This is a rule on statements, not on what a SELECT reads: that is bounded by the session\'s storage secret and
|
|
517
|
+
* Serve this DuckLake connection as a catalog of its own tables, as an orchestrator that provisions catalogs does. Two effects. Its session gets `SET search_path = \'<name>.main\'` after the attach, so a model\'s `<name>.table(\'t\')`, which compiles to the bare table name, resolves inside the catalog: DuckDB does not search an attached catalog for an unqualified name otherwise. Each statement run on it emits a `statement_usage` log record and counts in `publisher_statement_usage_total`, for whoever meters the catalog. And raw SQL on it runs only as a single SELECT: `sqlQuery` and `sqlSource` answer 400 for anything else (another statement type, or more than one statement), and `sqlTemporaryTable` answers 400 always. This is a rule on statements, not on what a SELECT reads: that is bounded by the catalog role and by the session\'s storage secret, which on a managed connection attached read-only is scoped to the `main` schema\'s recorded path, so a SELECT reads only that schema\'s files; another schema\'s files, and any other object in the bucket, are unsigned (403). Absent or false is the pre-existing behavior.
|
|
518
518
|
*/
|
|
519
519
|
'managed'?: boolean;
|
|
520
520
|
/**
|
|
@@ -958,7 +958,7 @@ export interface DucklakeConnectionCatalog {
|
|
|
958
958
|
*/
|
|
959
959
|
export interface DucklakeConnectionStorage {
|
|
960
960
|
/**
|
|
961
|
-
* The catalog\'s data path, a URL of the storage location (e.g. s3://my-bucket/path or gs://my-bucket/path). Given, it is the path every attach uses, and the first read-write attach of a catalog that does not exist yet creates it there: the pre-existing behavior. Omitted, the catalog must already exist, every attach uses the data path the catalog recorded at its creation, and no attach ever creates a catalog: the shape for a catalog created elsewhere, through the admin API (admin-api-doc.yaml) or by another tool.
|
|
961
|
+
* The catalog\'s data path, a URL of the storage location (e.g. s3://my-bucket/path or gs://my-bucket/path). Given, it is the path every attach uses, and the first read-write attach of a catalog that does not exist yet creates it there: the pre-existing behavior. Omitted, the catalog must already exist, every attach uses the data path the catalog recorded at its creation, and no attach ever creates a catalog: the shape for a catalog created elsewhere, through the admin API (admin-api-doc.yaml) or by another tool. Either way the storage secret is scoped to the data path, the given one or the recorded one: a read of any other object through this connection is unsigned, and on S3 the host\'s AWS_* environment never signs it either. A catalog with neither is not attached.
|
|
962
962
|
*/
|
|
963
963
|
'bucketUrl'?: string;
|
|
964
964
|
/**
|