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

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,7 @@ 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
1766
  ADMIN: "tinycloud.sql/admin",
1767
1767
  SELECT: "tinycloud.sql/select",
1768
1768
  INSERT: "tinycloud.sql/insert",
@@ -1882,7 +1882,7 @@ var SQLService = class extends BaseService {
1882
1882
  const actions = [
1883
1883
  this.actionForSql(sql, SQLAction.WRITE),
1884
1884
  ...(options?.schema ?? []).map(
1885
- (statement) => this.actionForSql(statement, SQLAction.DDL)
1885
+ (statement) => this.actionForSql(statement, SQLAction.SCHEMA)
1886
1886
  )
1887
1887
  ];
1888
1888
  const response = await this.invokeSQL(
@@ -2062,7 +2062,7 @@ var SQLService = class extends BaseService {
2062
2062
  actionForSql(sql, fallback) {
2063
2063
  const token = firstSqlToken(sql);
2064
2064
  if (token === "pragma") return SQLAction.ADMIN;
2065
- if (token !== void 0 && DDL_TOKENS.has(token)) return SQLAction.DDL;
2065
+ if (token !== void 0 && DDL_TOKENS.has(token)) return SQLAction.SCHEMA;
2066
2066
  return fallback;
2067
2067
  }
2068
2068
  actionsForSqlBatch(statements) {