Skip to content

Beta.19#5505

Merged
AndriiSherman merged 128 commits intobetafrom
issues2
Mar 23, 2026
Merged

Beta.19#5505
AndriiSherman merged 128 commits intobetafrom
issues2

Conversation

@AleksandrSherman
Copy link
Collaborator

@AleksandrSherman AleksandrSherman commented Mar 18, 2026

Summary

  • Removed duplicate prepareFilenames() call in file handlers (pushHandle, generateHandle, etc.)

handles now receive final filenames directly. Previously prepareFilenames() was called in two places - during config preparation and inside each command file handler. It made identical logic and checks

  • Drizzle-ORM: session.all for mysql and singlestore now uses .query() method instead of .execute()

  • Drizzle-Kit now reads only .js .mjs .cjs .jsx .ts .mts .cts .tsx files, ignoring other extensions

  • Drizzle-Kit push: Added batch method to connectToSQLite and connectToLibSQL, which avoids unnecessary checks when executing SQL statements using push command

- if ('batchWithPragma' in db && db.batchWithPragma) {
- 	await db.batchWithPragma([...lossStatements, ...sqlStatements]);
- } else {
- 	const isD1 = 'driver' in credentials && credentials.driver === 'd1-http';
- 	if (!isD1) await db.run('begin');
- 	try {
- 		for (const statement of [...lossStatements, ...sqlStatements]) {
- 			if (verbose) console.log(highlightSQL(statement));
- 			await db.run(statement);
- 		}
- 		if (!isD1) await db.run('commit');
- 	} catch (e) {
- 		console.error(e);
- 		if (!isD1) await db.run('rollback');
- 		process.exit(1);
- 	}
- }

+ await db.batch(allStatements);
  • Removed transactions in Drizzle-Kit push command for SQLite so PRAGMA statement works

  • Combined turso and sqlite dialects to be handled in one handler with push command

Updates:

  • Handled correct MySQL migrate() usage with multiple databases

Fixed issues:

Sukairo-02 and others added 30 commits December 25, 2025 22:42
…of alias handling for views in `from` clause
AleksandrSherman and others added 28 commits March 16, 2026 16:29
* `sqlcommenter` comments support for `postgres`, `mysql` query builders & prepared queries

* Fixed imports

* Test fix

* Implemented comment merging, string-type comments

* Fixed tests

* Removed post-prepare comment editing

* Removed sql.if calls

* Switched integration tests for comments to full query comparison

* Extended postpone date

* Fixed tests
@AndriiSherman AndriiSherman merged commit 01d681d into beta Mar 23, 2026
34 checks passed
@AndriiSherman AndriiSherman deleted the issues2 branch March 23, 2026 19:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants