@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.cjs CHANGED
@@ -1893,7 +1893,7 @@ var DatabaseHandle = class {
1893
1893
  var SQLAction = {
1894
1894
  READ: "tinycloud.sql/read",
1895
1895
  WRITE: "tinycloud.sql/write",
1896
- DDL: "tinycloud.sql/ddl",
1896
+ SCHEMA: "tinycloud.sql/schema",
1897
1897
  ADMIN: "tinycloud.sql/admin",
1898
1898
  SELECT: "tinycloud.sql/select",
1899
1899
  INSERT: "tinycloud.sql/insert",
@@ -2013,7 +2013,7 @@ var SQLService = class extends BaseService {
2013
2013
  const actions = [
2014
2014
  this.actionForSql(sql, SQLAction.WRITE),
2015
2015
  ...(options?.schema ?? []).map(
2016
- (statement) => this.actionForSql(statement, SQLAction.DDL)
2016
+ (statement) => this.actionForSql(statement, SQLAction.SCHEMA)
2017
2017
  )
2018
2018
  ];
2019
2019
  const response = await this.invokeSQL(
@@ -2193,7 +2193,7 @@ var SQLService = class extends BaseService {
2193
2193
  actionForSql(sql, fallback) {
2194
2194
  const token = firstSqlToken(sql);
2195
2195
  if (token === "pragma") return SQLAction.ADMIN;
2196
- if (token !== void 0 && DDL_TOKENS.has(token)) return SQLAction.DDL;
2196
+ if (token !== void 0 && DDL_TOKENS.has(token)) return SQLAction.SCHEMA;
2197
2197
  return fallback;
2198
2198
  }
2199
2199
  actionsForSqlBatch(statements) {