-
-
Notifications
You must be signed in to change notification settings - Fork 688
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #614 from drizzle-team/beta
- Loading branch information
Showing
38 changed files
with
1,533 additions
and
313 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
- 🐛 Fixed including multiple relations on the same level in RQB (#599) | ||
- 🐛 Updated migrators for relational queries support (#601) | ||
- 🐛 Fixed invoking .findMany() without arguments |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,11 @@ | ||
import type { MigrationConfig} from '~/migrator'; | ||
import type { MigrationConfig } from '~/migrator'; | ||
import { readMigrationFiles } from '~/migrator'; | ||
import type { BetterSQLite3Database } from './driver'; | ||
|
||
export function migrate(db: BetterSQLite3Database, config: string | MigrationConfig) { | ||
export function migrate<TSchema extends Record<string, unknown>>( | ||
db: BetterSQLite3Database<TSchema>, | ||
config: string | MigrationConfig, | ||
) { | ||
const migrations = readMigrationFiles(config); | ||
db.dialect.migrate(migrations, db.session); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,11 @@ | ||
import type { MigrationConfig} from '~/migrator'; | ||
import type { MigrationConfig } from '~/migrator'; | ||
import { readMigrationFiles } from '~/migrator'; | ||
import type { BunSQLiteDatabase } from './driver'; | ||
|
||
export function migrate(db: BunSQLiteDatabase, config: string | MigrationConfig) { | ||
export function migrate<TSchema extends Record<string, unknown>>( | ||
db: BunSQLiteDatabase<TSchema>, | ||
config: string | MigrationConfig, | ||
) { | ||
const migrations = readMigrationFiles(config); | ||
db.dialect.migrate(migrations, db.session); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,11 @@ | ||
import type { MigrationConfig} from '~/migrator'; | ||
import type { MigrationConfig } from '~/migrator'; | ||
import { readMigrationFiles } from '~/migrator'; | ||
import type { DrizzleD1Database } from './driver'; | ||
|
||
export async function migrate(db: DrizzleD1Database, config: string | MigrationConfig) { | ||
export async function migrate<TSchema extends Record<string, unknown>>( | ||
db: DrizzleD1Database<TSchema>, | ||
config: string | MigrationConfig, | ||
) { | ||
const migrations = readMigrationFiles(config); | ||
await db.dialect.migrate(migrations, db.session); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.