durable-db 0.2.1 → 0.2.2

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.
@@ -0,0 +1,5 @@
1
+ import { type } from "arktype";
2
+ //#region src/arktypeConfig.d.ts
3
+ declare const type$1: typeof type;
4
+ //#endregion
5
+ export { type$1 as t };
@@ -1,7 +1,7 @@
1
1
  import { t as DatabaseSource } from "../discovery-gHeLq8jk.js";
2
2
  import { t as Snapshot } from "../snapshot-CaG5xnE2.js";
3
- import { l as DatabaseInfo } from "../defineDatabase-CHmTgZTx.js";
4
- import "../index-M4Jp_PFM.js";
3
+ import { l as DatabaseInfo } from "../defineDatabase-IUthY3Ex.js";
4
+ import "../index-BdrcuAU7.js";
5
5
  import { Command } from "commander";
6
6
  //#region src/cli/command.d.ts
7
7
  /**
@@ -1,4 +1,4 @@
1
- import { t as type } from "../arktypeConfig-DdIO8VV1.js";
2
- import { a as ActionInfo, c as DatabaseDefinition, d as InferArgs, f as ParsedDatabaseFile, i as ActionContext, l as DatabaseInfo, n as Action, o as ArgsSchema, r as ActionConfig, s as DatabaseConfig, t as defineDatabase, u as DrizzleToKysely } from "../defineDatabase-CHmTgZTx.js";
3
- import { _ as CreateKyselyOptions, a as QueryResult, c as DrizzleDefaultsPlugin, d as dateSerializers, f as Migration, g as SqliteDurableObject, h as Migrations, i as KyselyPlugin, l as SchemaPlugin, m as MigrationSchemaConflictError, n as CompiledQuery, o as studio, p as MigrationAttemptInfo, r as Kysely, s as DateSerializePlugin, t as CamelCasePlugin, u as createDrizzlePlugins, v as SqlExecutor, y as createKyselyFromSql } from "../index-M4Jp_PFM.js";
1
+ import { t as type } from "../arktypeConfig-AXvobTPL.js";
2
+ import { a as ActionInfo, c as DatabaseDefinition, d as InferArgs, f as ParsedDatabaseFile, i as ActionContext, l as DatabaseInfo, n as Action, o as ArgsSchema, r as ActionConfig, s as DatabaseConfig, t as defineDatabase, u as DrizzleToKysely } from "../defineDatabase-IUthY3Ex.js";
3
+ import { _ as CreateKyselyOptions, a as QueryResult, c as DrizzleDefaultsPlugin, d as dateSerializers, f as Migration, g as SqliteDurableObject, h as Migrations, i as KyselyPlugin, l as SchemaPlugin, m as MigrationSchemaConflictError, n as CompiledQuery, o as studio, p as MigrationAttemptInfo, r as Kysely, s as DateSerializePlugin, t as CamelCasePlugin, u as createDrizzlePlugins, v as SqlExecutor, y as createKyselyFromSql } from "../index-BdrcuAU7.js";
4
4
  export { type Action, type ActionConfig, type ActionContext, type ActionInfo, type ArgsSchema, CamelCasePlugin, type CompiledQuery, type CreateKyselyOptions, type DatabaseConfig, type DatabaseDefinition, type DatabaseInfo, DateSerializePlugin, DrizzleDefaultsPlugin, type DrizzleToKysely, type InferArgs, type Kysely, type KyselyPlugin, type Migration, type MigrationAttemptInfo, MigrationSchemaConflictError, type Migrations, type ParsedDatabaseFile, type QueryResult, SchemaPlugin, type SqlExecutor, SqliteDurableObject, createDrizzlePlugins, createKyselyFromSql, dateSerializers, defineDatabase, studio, type };
@@ -1,4 +1,5 @@
1
- import { n as type } from "./arktypeConfig-DdIO8VV1.js";
1
+ import "./arktypeConfig-AXvobTPL.js";
2
+ import { type } from "arktype";
2
3
  import { SQLiteTableWithColumns } from "drizzle-orm/sqlite-core";
3
4
  import { Kysely } from "kysely";
4
5
  import { Kyselify } from "drizzle-orm/kysely";
@@ -1,10 +1,10 @@
1
- import "./arktypeConfig-DdIO8VV1.js";
2
- import "./defineDatabase-CHmTgZTx.js";
1
+ import "./arktypeConfig-AXvobTPL.js";
2
+ import "./defineDatabase-IUthY3Ex.js";
3
3
  import { SQLiteTableWithColumns } from "drizzle-orm/sqlite-core";
4
- import { DurableObject } from "cloudflare:workers";
5
4
  import { CamelCasePlugin, CamelCasePlugin as CamelCasePlugin$1, CompiledQuery, Kysely, Kysely as Kysely$1, KyselyPlugin, KyselyPlugin as KyselyPlugin$1, PluginTransformQueryArgs, PluginTransformResultArgs, QueryResult, QueryResult as QueryResult$1, RootOperationNode, UnknownRow } from "kysely";
6
- import { Table } from "drizzle-orm";
5
+ import { DurableObject } from "cloudflare:workers";
7
6
  import { studio } from "@outerbase/browsable-durable-object";
7
+ import { Table } from "drizzle-orm";
8
8
  //#region src/db/kysely.d.ts
9
9
  /**
10
10
  * SQL executor function type
package/dist/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- import { t as type } from "./arktypeConfig-DdIO8VV1.js";
2
- import { c as DatabaseDefinition, d as InferArgs, i as ActionContext, n as Action, r as ActionConfig, s as DatabaseConfig, t as defineDatabase, u as DrizzleToKysely } from "./defineDatabase-CHmTgZTx.js";
1
+ import { t as type } from "./arktypeConfig-AXvobTPL.js";
2
+ import { c as DatabaseDefinition, d as InferArgs, i as ActionContext, n as Action, r as ActionConfig, s as DatabaseConfig, t as defineDatabase, u as DrizzleToKysely } from "./defineDatabase-IUthY3Ex.js";
3
3
  import { getTenantId, hasTenantId, setTenantIdResolver } from "./context/index.js";
4
4
  import { AnySQLiteColumn, blob, foreignKey, index, integer, numeric, primaryKey, real, table, text, uniqueIndex } from "./schema.js";
5
5
  import { Kysely } from "kysely";
@@ -1,4 +1,4 @@
1
- import { t as type } from "./arktypeConfig-DdIO8VV1.js";
1
+ import { t as type } from "./arktypeConfig-AXvobTPL.js";
2
2
  //#region src/registry.d.ts
3
3
  export interface ActionDefinition {
4
4
  validator: (args: unknown) => unknown;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "durable-db",
3
- "version": "0.2.1",
3
+ "version": "0.2.2",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "https://github.com/eagerpatch/durable-db.git"