@tinycloud/sdk-services 2.4.0-beta.12 → 2.4.0-beta.14

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/index.js CHANGED
@@ -1762,7 +1762,9 @@ var DatabaseHandle = class {
1762
1762
  var SQLAction = {
1763
1763
  READ: "tinycloud.sql/read",
1764
1764
  WRITE: "tinycloud.sql/write",
1765
- DDL: "tinycloud.sql/ddl",
1765
+ SCHEMA: "tinycloud.sql/schema",
1766
+ /** @deprecated Use SQLAction.SCHEMA. */
1767
+ DDL: "tinycloud.sql/schema",
1766
1768
  ADMIN: "tinycloud.sql/admin",
1767
1769
  SELECT: "tinycloud.sql/select",
1768
1770
  INSERT: "tinycloud.sql/insert",
@@ -1882,7 +1884,7 @@ var SQLService = class extends BaseService {
1882
1884
  const actions = [
1883
1885
  this.actionForSql(sql, SQLAction.WRITE),
1884
1886
  ...(options?.schema ?? []).map(
1885
- (statement) => this.actionForSql(statement, SQLAction.DDL)
1887
+ (statement) => this.actionForSql(statement, SQLAction.SCHEMA)
1886
1888
  )
1887
1889
  ];
1888
1890
  const response = await this.invokeSQL(
@@ -2062,7 +2064,7 @@ var SQLService = class extends BaseService {
2062
2064
  actionForSql(sql, fallback) {
2063
2065
  const token = firstSqlToken(sql);
2064
2066
  if (token === "pragma") return SQLAction.ADMIN;
2065
- if (token !== void 0 && DDL_TOKENS.has(token)) return SQLAction.DDL;
2067
+ if (token !== void 0 && DDL_TOKENS.has(token)) return SQLAction.SCHEMA;
2066
2068
  return fallback;
2067
2069
  }
2068
2070
  actionsForSqlBatch(statements) {