Skip to content

Use lua scripts for get tag and onMutate #4399

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

Open
wants to merge 46 commits into
base: cache
Choose a base branch
from

Conversation

CahidArda
Copy link

Using lua scripts for geting cache value by tag and onMutate methods.

HEXPIRE commands are added but they are commented out. Internal config is compatible with SET, not HEXPIRE. Options if HEXPIRE should be like:

{
  seconds: number
  option?: "NX" | "XX" | "GT" | "LT"
}

AndriiSherman and others added 30 commits February 25, 2025 22:07
…sed (drizzle-team#4237)

* Updates for @neondatabase/[email protected] compatibility

* Clearer comments

* Linting
* Various fixes, features bundled for v0.41.0

* Fixed broken test case

* D1 Buffer mapping fix, tests fix

* Disabled type parsers for `neon-http` driver
* drizzle-kit and push to d1-http failed
There are two reasons:
- d1-http don't support transactions with db.run("begin/commit/rollback")
- introspections run against some CF-D1 internal tables and fails later.
  that could mitigated with a right tablesFilter: ['!_cf_KV'].
  There was a incomplete mitigation in place which now includes _cf_KV
  tables.

* chore: there are more _cf_ prefixed tables

* fix: Add escaping to sqlite pull queries

* should we pass-with-no-tests ??

* D P R I N T

* Add ci vitest config

* Bump kit, added release notes

---------

Co-authored-by: Roman <[email protected]>
Co-authored-by: AndriiSherman <[email protected]>
…4314)

* Export (almost) everything from validator packages

* Support infinitely recursive types in JSON columns

* Fix import

* Format

* Init drizzle-arktype

* Finish drizzle-arktype

* Sync fixes from other branch

* Update READMEs

* Update README

* Type optimizations and better debugging for tests

* Add CI/CD updates for arktype package

* Bump arktype

* bump to 0.1.2

* Update turbo config

* Bump all validator packages versions

---------

Co-authored-by: Andrii Sherman <[email protected]>
Co-authored-by: David Blass <[email protected]>
CahidArda and others added 16 commits April 10, 2025 19:56
* fix: incorrect types for inArray (drizzle-team#1774)

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

* Pass row type parameter to @planetscale/database's execute  (drizzle-team#1852)

* Update session.ts

No need to cast, you can just pass a type parameter

* Update package.json

---------

Co-authored-by: AndriiSherman <[email protected]>

* Don't enforce type restrictions on mysqlEnum and pgEnum to be non-empty arrays (drizzle-team#2429)

* Removed type restriction on non-empty arrays for mysqEnum

* Removed type restriction on non-empty arrays for pgEnum

* check values argument is not an empty array for pgEnum

* fix: typings

* Add type tests

---------

Co-authored-by: AndriiSherman <[email protected]>

* Export mapColumnToSchema function (drizzle-team#2495)


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

* [Pg-kit] Fix malformed array literal error on indexes (drizzle-team#2884)

* Fix malformed array literal error on indexes

The main issue is the expression text to array conversion happening in the edited line.
Commas in an expression become delimiters and split the expression up prematurely.
Some special characters like double quotes can cause the malformed array literal errors.

The postgres function pg_get_indexdef does what the snippet above is trying to do, but safely.

* Add index introspect test

* Update pg.test.ts

Remove .only in basic index test

---------

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

* add infer enum type (drizzle-team#2552)

* Update how enums work in pg and mysql

* Remove duplicated exports, add related test (drizzle-team#4413)

* Remove duplicated exports, add related test

Fixes drizzle-team#4079

* Fix test

* chore: updating esbuild version in drizzle-kit (drizzle-team#4046)

* chore: updating esbuild version in drizzle-kit

* Fix build errors

---------

Co-authored-by: AndriiSherman <[email protected]>

* Drizzle-kit: fix recreate enums + altering data type to enums, from enums in pg (drizzle-team#4330)

Co-authored-by: AndriiSherman <[email protected]>

* Skip test and try latest gel

* Add release notes

---------

Co-authored-by: James <[email protected]>
Co-authored-by: Ayrton <[email protected]>
Co-authored-by: April Mintac Pineda <[email protected]>
Co-authored-by: Matthew Ary <[email protected]>
Co-authored-by: Kratious <[email protected]>
Co-authored-by: Toti Muñoz <[email protected]>
Co-authored-by: Dan Kochetov <[email protected]>
Co-authored-by: Paul Marsicovetere <[email protected]>
Co-authored-by: Aleksandr Sherman <[email protected]>
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.

7 participants