@astrojs/db 0.1.13 → 0.1.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.
@@ -3,7 +3,7 @@ import { type BooleanField, type DBCollection, type DBCollections, type DBField,
3
3
  import { type LibSQLDatabase } from 'drizzle-orm/libsql';
4
4
  import { type ColumnDataType } from 'drizzle-orm';
5
5
  import type { AstroIntegrationLogger } from 'astro';
6
- export { createRemoteDatabaseClient } from './utils-runtime.js';
6
+ export { createRemoteDatabaseClient, findLocalDatabase } from './utils-runtime.js';
7
7
  export type SqliteDB = SqliteRemoteDatabase;
8
8
  export type { Table } from './types.js';
9
9
  export declare function hasPrimaryKey(field: DBField): boolean;
package/dist/internal.js CHANGED
@@ -15,7 +15,7 @@ import {
15
15
  text
16
16
  } from "drizzle-orm/sqlite-core";
17
17
  import { z } from "zod";
18
- import { createRemoteDatabaseClient } from "./utils-runtime.js";
18
+ import { createRemoteDatabaseClient, findLocalDatabase } from "./utils-runtime.js";
19
19
  const sqlite = new SQLiteAsyncDialect();
20
20
  function hasPrimaryKey(field) {
21
21
  return "primaryKey" in field && !!field.primaryKey;
@@ -271,6 +271,7 @@ export {
271
271
  collectionToTable,
272
272
  createLocalDatabaseClient,
273
273
  createRemoteDatabaseClient,
274
+ findLocalDatabase,
274
275
  getCreateTableQuery,
275
276
  getModifiers,
276
277
  hasDefault,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@astrojs/db",
3
- "version": "0.1.13",
3
+ "version": "0.1.14",
4
4
  "description": "",
5
5
  "license": "MIT",
6
6
  "type": "module",