Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Beta #3561

Merged
merged 45 commits into from
Nov 15, 2024
Merged

Beta #3561

merged 45 commits into from
Nov 15, 2024

Conversation

AndriiSherman
Copy link
Member

No description provided.

klotztech and others added 30 commits October 25, 2024 22:05
…e-table-columns

fix: added commonly used columns to supabase `auth.users` table schema
[drizzle-kit]: Fix breakpoints option cannot be disabled
… bugs in Kit (#3284)

* Fix bugs with MySQL introspection tests

* Update float data type in MySQL

* Better support for float types in MySQL

* Handle existing unsigned numerical types in MySQL

* Add unsigned to floating point types in MySQL

* Handle unsigned floating point types in MySQL

* Update decimal data type

---------

Co-authored-by: Andrii Sherman <[email protected]>
* (MySQL) Fix placeholder type error in offset and limit

* Add prepared statement tests

* Add PG test

* Fix blob parsing in bun sqlite driver

* Lint and format

* Fix file

* Fix tests

* Use const instead of let in tests

* Format

---------

Co-authored-by: Andrii Sherman <[email protected]>
* Update Github issue templates (#3157)

* Update GH issue templates

* Update issue templates

---------

Co-authored-by: Andrii Sherman <[email protected]>

* Fix checkboxes

---------

Co-authored-by: L-Mario564 <[email protected]>
* feat: add tablesFilter to pushSchema api

* Format with dprint

---------

Co-authored-by: Andrii Sherman <[email protected]>
* Escape single quote in enum value

* Escape single quotes in string default values

* Handle instrospection of strings with single quotes

* Add tests

* Add tests

* Uncomment tests

* Fix SQL statement order in MySQL

* Add MySQL test

* Fix alter composite PK statement missing quotes in PG

* Add tests

* Handle SQL expressions in timestamp, date and time in PG

* Use `.run` instead of `.query` in SQLite queries that don't return anything

* Fix parsing of enum array types in PG

* Generate more PG index operators

* Fix primary key recreate on table rename

* Format

* Format

* Update test

* Format

* Fix tests

* Fix terminal output mistake

* Remove duplicate import

---------

Co-authored-by: Andrii Sherman <[email protected]>
Co-authored-by: Andrii Sherman <[email protected]>
Trivial: "You ... is ready" -> "Your ... is ready"

Co-authored-by: Andrii Sherman <[email protected]>
…cted fields (#2975)

* Add test to reproduce $returningId() column order issue

Currently, $returningId() only works when the primary key is in the
first column (of the Drizzle table definition not the underlying
MySQL table).

This new test checks for this behaviour by using $returningId()
when the primary key is in the second column.

See #2971

Signed-off-by: Daniel Harvey <[email protected]>

* Fix $returningId() to correctly set selected fields

The local variable `returning` computes the selected fields in
$returningId() but throws this away. Change to correctly
store config in the insert query builder.

Fixed #2971

Signed-off-by: Daniel Harvey <[email protected]>

---------

Signed-off-by: Daniel Harvey <[email protected]>
Co-authored-by: Andrii Sherman <[email protected]>
* Beta (#3503)

* Fix breakpoints option default value

* fix: added commonly used columns to supabase auth.users table schema

* imports checker with OHM grammar

* imports checker with OHM grammar + fix of imports issues

* Formatting fix

* [MySQL] Add unsigned floating point types + Fix unsigned integer type bugs in Kit (#3284)

* Fix bugs with MySQL introspection tests

* Update float data type in MySQL

* Better support for float types in MySQL

* Handle existing unsigned numerical types in MySQL

* Add unsigned to floating point types in MySQL

* Handle unsigned floating point types in MySQL

* Update decimal data type

---------

Co-authored-by: Andrii Sherman <[email protected]>

* Batch of bugfixes for ORM (#3181)

* (MySQL) Fix placeholder type error in offset and limit

* Add prepared statement tests

* Add PG test

* Fix blob parsing in bun sqlite driver

* Lint and format

* Fix file

* Fix tests

* Use const instead of let in tests

* Format

---------

Co-authored-by: Andrii Sherman <[email protected]>

* main to beta (#3404)

* Update Github issue templates (#3157)

* Update GH issue templates

* Update issue templates

---------

Co-authored-by: Andrii Sherman <[email protected]>

* Fix checkboxes

---------

Co-authored-by: L-Mario564 <[email protected]>

* feat: add tablesFilter to pushSchema api (#3141)

* feat: add tablesFilter to pushSchema api

* Format with dprint

---------

Co-authored-by: Andrii Sherman <[email protected]>

* Batch of bugfixes for Kit (#2959)

* Escape single quote in enum value

* Escape single quotes in string default values

* Handle instrospection of strings with single quotes

* Add tests

* Add tests

* Uncomment tests

* Fix SQL statement order in MySQL

* Add MySQL test

* Fix alter composite PK statement missing quotes in PG

* Add tests

* Handle SQL expressions in timestamp, date and time in PG

* Use `.run` instead of `.query` in SQLite queries that don't return anything

* Fix parsing of enum array types in PG

* Generate more PG index operators

* Fix primary key recreate on table rename

* Format

* Format

* Update test

* Format

* Fix tests

* Fix terminal output mistake

* Remove duplicate import

---------

Co-authored-by: Andrii Sherman <[email protected]>

* Bump versions

---------

Co-authored-by: Steffen <[email protected]>
Co-authored-by: Nicholas Ly <[email protected]>
Co-authored-by: Alex Blokh <[email protected]>
Co-authored-by: Sukairo-02 <[email protected]>
Co-authored-by: L-Mario564 <[email protected]>
Co-authored-by: Dan Ribbens <[email protected]>

* Dprint

* Fixed `sql` omitting schema names when processing columns, fixed related test cases

* Fixed dprint formatting issues

* Fixed lack of schema name on integration tests column references

* Removed `\!`

---------

Co-authored-by: Andrii Sherman <[email protected]>
Co-authored-by: Steffen <[email protected]>
Co-authored-by: Nicholas Ly <[email protected]>
Co-authored-by: Alex Blokh <[email protected]>
Co-authored-by: L-Mario564 <[email protected]>
Co-authored-by: Dan Ribbens <[email protected]>
Co-authored-by: Andrii Sherman <[email protected]>
Removed and extra `update` text in the comment description using onDuplicateKeyUpdate
…olumns (#2846)

Co-authored-by: Alexis Reymann <[email protected]>
Co-authored-by: Andrii Sherman <[email protected]>
L-Mario564 and others added 15 commits November 12, 2024 16:39
"put you code below" 
should be
"put your code below"
* Fix Drizzle ORM for expo-sqlite

closes #3195

* bump expo-sqlite version to 14.0.0 in package.json and pnpm-lock.yaml

---------

Co-authored-by: Andrii Sherman <[email protected]>
* Implement `update ... from` in PG

* Add `update ... from` in SQLite

* Lint and format

* Fix type error

* Fix SQLite type errors

* Lint and format

* Push merge changes
* Implement insert into select for PG dialect

* Add additional PG test

* Implement insert into select in MySql dialect

* Implement insert into select in SQLite dialect

* Format

* Set cascade delete on test table foreign keys
@AndriiSherman AndriiSherman merged commit 9e51fbe into main Nov 15, 2024
3 of 9 checks passed
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.