From c8ad69d969f815f208f7105be2d2b74b1cc0f149 Mon Sep 17 00:00:00 2001 From: Oliver Speir Date: Sat, 8 Jun 2024 22:57:43 -0600 Subject: [PATCH 1/4] import and export in index.ts --- packages/db/src/runtime/index.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/db/src/runtime/index.ts b/packages/db/src/runtime/index.ts index b2c28a64402e..8737c7d9fc36 100644 --- a/packages/db/src/runtime/index.ts +++ b/packages/db/src/runtime/index.ts @@ -11,7 +11,8 @@ import { import type { DBColumn, DBTable } from '../core/types.js'; import { type SerializedSQL, isSerializedSQL } from './types.js'; import { pathToFileURL } from './utils.js'; - +import { type LibSQLDatabase } from 'drizzle-orm/libsql'; +export type Database = Omit; export type { Table } from './types.js'; export { createRemoteDatabaseClient, createLocalDatabaseClient } from './db-client.js'; From c61319b238a89a283aeaf11af04adf3daef77a58 Mon Sep 17 00:00:00 2001 From: Oliver Speir Date: Sat, 8 Jun 2024 23:38:07 -0600 Subject: [PATCH 2/4] remove import and export from virtual.ts --- packages/db/src/runtime/virtual.ts | 4 ---- 1 file changed, 4 deletions(-) diff --git a/packages/db/src/runtime/virtual.ts b/packages/db/src/runtime/virtual.ts index 4159e74c1a5c..6f008fe0d8ac 100644 --- a/packages/db/src/runtime/virtual.ts +++ b/packages/db/src/runtime/virtual.ts @@ -11,10 +11,6 @@ import type { TextColumnOpts, } from '../core/types.js'; -import type { LibSQLDatabase } from 'drizzle-orm/libsql'; - -export type Database = Omit; - function createColumn>(type: S, schema: T) { return { type, From c0595134c6e5ed9bacadfca5c92b81927a20f6d8 Mon Sep 17 00:00:00 2001 From: Oliver Speir Date: Sat, 8 Jun 2024 23:41:37 -0600 Subject: [PATCH 3/4] add changset --- .changeset/warm-pets-tap.md | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 .changeset/warm-pets-tap.md diff --git a/.changeset/warm-pets-tap.md b/.changeset/warm-pets-tap.md new file mode 100644 index 000000000000..b9f143e050e2 --- /dev/null +++ b/.changeset/warm-pets-tap.md @@ -0,0 +1,5 @@ +--- +'@astrojs/db': patch +--- + +Export type Database from `@astrojs/db/runtime` From ab0506afb9c27eb08def69498b8c9f6f84eea087 Mon Sep 17 00:00:00 2001 From: Oliver Speir <115520730+OliverSpeir@users.noreply.github.com> Date: Mon, 10 Jun 2024 09:37:29 -0600 Subject: [PATCH 4/4] Update .changeset/warm-pets-tap.md Co-authored-by: Emanuele Stoppa --- .changeset/warm-pets-tap.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.changeset/warm-pets-tap.md b/.changeset/warm-pets-tap.md index b9f143e050e2..7c388259b865 100644 --- a/.changeset/warm-pets-tap.md +++ b/.changeset/warm-pets-tap.md @@ -2,4 +2,4 @@ '@astrojs/db': patch --- -Export type Database from `@astrojs/db/runtime` +Export type `Database` from `@astrojs/db/runtime`