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

[pull] main from prisma:main #122

Open
wants to merge 722 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
722 commits
Select commit Hold shift + click to select a range
0e839fb
fix(deps): update prisma driver adapters to v5.10.2 (minor) (#4755)
renovate[bot] Mar 7, 2024
20e2367
fix(deps): update dependency undici to v6.6.2 (#4757)
renovate[bot] Mar 7, 2024
e8f0ff5
fix(deps): update dependency @libsql/client to v0.5.2 (#4759)
renovate[bot] Mar 7, 2024
723637f
chore(deps): update dependency typescript to v5.4.2 (#4758)
renovate[bot] Mar 7, 2024
0b70883
fix(deps): update prisma monorepo to v5.10.2 (minor) (#4760)
renovate[bot] Mar 7, 2024
3d9a0d6
qe/ci: add env var for default relation load strategy (#4746)
Druue Mar 8, 2024
715c8eb
qe: Capabilities-based size optimizations for WASM engine (#4701)
Mar 11, 2024
b1d3505
feat: implement in-memory distinct with JOINs (#4739)
aqrln Mar 11, 2024
efd2449
schema-wasm: Build psl crate with all connectors (#4768)
Mar 11, 2024
589b6ce
qe-wasm: Remove example (#4770)
Mar 13, 2024
93f79ec
chore(deps): update driver adapters directory (minor) (#4579)
renovate[bot] Mar 14, 2024
973c18a
Fix `relation_fields` validation to accept primary key indexes (#4376)
yubrot Mar 19, 2024
bbcbb6f
chore(query-engine-tests): fix TypeScript suites after updates to pri…
jkomyno Mar 20, 2024
dedf0b7
psl: Add "prismaSchemaFolder" preview feature (#4780)
Mar 20, 2024
8aaab74
feat(migrate/sqlite): ignore Cloudflare D1 specific tables (#4782)
Jolg42 Mar 21, 2024
ff01c8c
fix(relationJoins): decimal values should not suffer precision loss (…
Weakky Mar 22, 2024
e53b11a
feat(adapter-d1): allow parsing bool from double. DRIVER_ADAPTERS_BRA…
jkomyno Mar 22, 2024
e2a20be
fix(qe): Add comparison for decimal <-> str (#4784)
Druue Mar 22, 2024
582bc82
feat(driver-adapters): Enable D1 in query-engine-tests (#4773)
jkomyno Mar 22, 2024
ac6cd78
feat(d1): comment out test for decimal type (#4788)
jkomyno Mar 25, 2024
26fbea2
fix(qe): boolean batching (#4783)
Druue Mar 26, 2024
80622dd
fix(adapter-d1): fix tests (#4794)
jkomyno Mar 27, 2024
12fad47
driver-adapters: Serialize i32 arguments as `number` (#4797)
Mar 28, 2024
60bda88
ci(wasm-size): Clarify label (#4799)
janpio Mar 28, 2024
446e407
fix(qe): querying full table on batched findUnique() (#4789)
Druue Mar 28, 2024
473ed31
feat: enable createMany-related capabilities and tests for SQLite (#4…
laplab Mar 28, 2024
efe4a64
chore(deps): pin dependencies (#4776)
renovate[bot] Apr 3, 2024
c128849
chore(deps): update cachix/install-nix-action action to v26 (#4777)
renovate[bot] Apr 3, 2024
426215e
chore(deps): update rtcamp/action-slack-notify action to v2.3.0 (#4801)
renovate[bot] Apr 3, 2024
c3b400a
chore(renovate): fix JSON (#4804)
Jolg42 Apr 3, 2024
d5a80e2
chore(deps): update dependency typescript to v5.4.3 (#4800)
renovate[bot] Apr 3, 2024
fa0e267
chore(deps): update driver adapters directory (patch) (#4775)
renovate[bot] Apr 3, 2024
cf53d7e
chore(deps): update driver adapters directory (minor) (#4806)
renovate[bot] Apr 3, 2024
fc73af6
fix(deps): update dependency @effect/schema to v0.64.18 (#4805)
renovate[bot] Apr 3, 2024
3d92748
ci: update pnpm/action-setup to v3 (#4811)
Jolg42 Apr 4, 2024
e66d30d
feat(psl): Recommend type in error message if schema validation fails…
pranayat Apr 5, 2024
dcdb692
Experiment with multi-file schema handling in PSL (#4243)
tomhoule Apr 8, 2024
87bc6b8
WIP(schema-wasm): support schema split into multiple files (#4787)
Apr 8, 2024
f45ef6a
chore(deps): bump h2 from 0.3.24 to 0.3.26 (#4814)
dependabot[bot] Apr 10, 2024
fce8aba
qe: add json serialization span in binary engine (#4339)
aqrln Apr 10, 2024
dc758d7
feat: complete format support (#4818)
jkomyno Apr 10, 2024
6144ce0
fix(qe): Add native type `Citext` as invalid batch filter (#4817)
Druue Apr 10, 2024
8b36be3
Revert "qe: add json serialization span in binary engine (#4339)" (#4…
aqrln Apr 11, 2024
ff4075c
fix: make `getFirstNonEmpty` actually filter out empty results (#4820)
laplab Apr 11, 2024
6d35870
fix: make expression log syntax easier to understand (#4819)
laplab Apr 11, 2024
b339b9d
feat: enable field exclusion for the json protocol (#4807)
Weakky Apr 12, 2024
1d60431
C ABI target (#4793)
ospfranco Apr 12, 2024
3364458
qe: Fix Windows build after merging c-abi (#4826)
Apr 12, 2024
b9a39a7
fix(relationJoins): support oid column type (#4821)
Weakky Apr 22, 2024
9ff725d
chore(deps): update driver adapters directory (minor) (#4830)
renovate[bot] Apr 23, 2024
e5f3dd7
chore(deps): update dependency typescript to v5.4.5 (#4828)
renovate[bot] Apr 23, 2024
0c8d1f5
fix: replace "custom type" in error message with actual term "composi…
janpio Apr 23, 2024
461fac7
fix(deps): update driver adapters directory (patch) (#4829)
renovate[bot] Apr 24, 2024
5d2f494
feat: add test for upsert failure in relationMode=prisma (#4839)
laplab Apr 24, 2024
031bd63
query-engine-c-abi: Remove openssl dependency (#4840)
Apr 25, 2024
744b41c
chore(deps): update dependency tsx to v4.7.2 (#4827)
renovate[bot] Apr 25, 2024
264f24c
query-engine-c-abi: CI build for RN binaries (#4838)
Apr 29, 2024
2f076be
fix(se): Empty dbgenerated() breaking for Unsupported() types (#4841)
Druue Apr 30, 2024
ba22df4
ci(test-schema-engine): pin MySQL/MariaDB scoop versions (#4845)
Jolg42 Apr 30, 2024
c559fb9
ci(test-schema-engine): use MySQL-LTS scoop version (#4846)
Jolg42 Apr 30, 2024
d3ec637
chore: upgrade to Docker Compose v2 (#4836)
Jolg42 Apr 30, 2024
612a7f7
fix(psl): retrieve all referential actions based on relationMode (#4844)
Druue Apr 30, 2024
0ec3a6f
feat(psl): Validation error when shadowDatabaseUrl is identical to ur…
pranayat May 2, 2024
5446571
feat: support createManyAndReturn (#4842)
Weakky May 3, 2024
8853577
fix(mongodb): use $or + $eq instead of $in (#4848)
laplab May 3, 2024
133a47f
test(schema-engine): allow SQLite migration to be D1-compatible (#4808)
jkomyno May 5, 2024
d880d75
feat(psl-core): implement `parse_configuration_multi_file` to correct…
jkomyno May 7, 2024
b34f35d
chore: clean up new clippy warnings (#4849)
laplab May 7, 2024
f77c9dd
test(d1): un-exclude tests related to incorrect count of changed rows…
Jolg42 May 7, 2024
56ca112
prisma-fmt: Add file name into lint errors (#4855)
May 7, 2024
f561446
chore: add rust-toolchain.toml and configure its auto-update (#4850)
laplab May 9, 2024
378787e
chore: fix renovate schedule for rust-toolchain.toml (#4858)
laplab May 9, 2024
482e329
chore(config): migrate renovate config (#4859)
renovate[bot] May 9, 2024
e162a52
chore(deps): update dependency rust to v1.78.0 (#4861)
renovate[bot] May 10, 2024
a8ad08f
Fix datasource URL override for c-abi engine (#4863)
May 10, 2024
b046ee1
query-engine-c-abi: Fix build warnings after update (#4864)
May 10, 2024
6eec160
Revert rust 1.78 update (#4865)
May 10, 2024
079da82
chore: update rust and wasm-bindgen (#4867)
aqrln May 13, 2024
879beb2
chore(libquery): remove dmmf (#4790)
jkomyno May 13, 2024
2c4bd67
fix(sqlserver): Fix max bind values of SQL Server for chunking in sim…
janpio May 13, 2024
e9771e6
fix(errors): Fix highlighting of injected info bits in error messages…
janpio May 13, 2024
94b459e
fix(introspection-warnings): Change wording (#4834)
janpio May 14, 2024
ae0473d
feat(psl): exclude unused "MultiSchema" capability in MySQL, simplify…
jkomyno May 14, 2024
97f638f
Support multiple files in text-document completions and code actions …
May 15, 2024
89e2d89
prisma-fmt: Correctly skip clrf line endings when computing field pos…
May 16, 2024
2a74da1
fix(validation): Reword validation msg (#4873)
janpio May 16, 2024
0af42cb
preparatory support for multi-file schema introspection (#4847)
Weakky May 17, 2024
7caddc3
chore(deps): update actions/checkout action to v3 (#4879)
renovate[bot] May 23, 2024
35c3eb2
chore(deps): update pnpm/action-setup action to v4 (#4881)
renovate[bot] May 23, 2024
a9b9775
chore(deps): update cachix/install-nix-action action to v27 (#4880)
renovate[bot] May 23, 2024
b4fe3e6
chore(deps): update actions/checkout action to v4 (#4876)
renovate[bot] May 23, 2024
f742678
fix(quaint/DA): handle JSON parsing engines side so that we can corre…
Druue May 24, 2024
417c14e
fix(introspection, sqlserver): Accept (and ignore) multi-line shared …
janpio May 24, 2024
793f7fb
Revert "fix(quaint/DA): handle JSON parsing engines side so that we c…
May 24, 2024
009080f
chore: update wasm toolchain (#4887)
aqrln May 27, 2024
cb3b66c
fix(schema-engine): fix sqlite migrations on D1 (#4871)
jkomyno May 28, 2024
0ae1cc9
fix: include parameter types in prepared statements cache (#4889)
laplab May 28, 2024
bca2d36
feat(schema-cli): support multi file schema (#4874)
Weakky May 28, 2024
64bb6b9
Restore #4883 (#4891)
May 29, 2024
36ed37c
feat(sql-query-connector): COALESCE nullable counts to 0 (#4893)
jkomyno May 30, 2024
aa2d11f
prisma-fmt: Make `get_config` error tolerant (#4875)
May 30, 2024
2f3a869
fix(fmt): quick-fix create new block (#4890)
Druue May 30, 2024
9ee4383
fix(se): Drift when FKs have same columns (#4885)
Druue May 31, 2024
3a14d17
feat(schema-cli): multi-file introspection (#4892)
Weakky May 31, 2024
bc6a413
chore(deps): update dependency tsx to v4.10.5 (#4868)
renovate[bot] May 31, 2024
9599c67
fix(adapter-d1) Use `max_bind_value = 100` on Cloudflare D1 (#4878)
jkomyno May 31, 2024
d99d360
prisma-fmt: Accept multiple files as an input for native types hints …
May 31, 2024
4f418dd
fix(mongo): default int native type should be long (#4888)
Weakky Jun 3, 2024
7320bfa
psl: Make `prismaSchemaFolder` feature public (#4896)
Jun 3, 2024
12e25d8
test(query-engine-wasm): add tests for D1 chunking issues (#4905)
jkomyno Jun 3, 2024
a3ecb20
fix: handle mssql authentication error (#4908)
Weakky Jun 6, 2024
9ee8c02
test(query-engine): fix some PlanetScale tests (#4909)
jkomyno Jun 7, 2024
d116c37
fix(fmt): newlines for composite types (and enums) (#4899)
Druue Jun 10, 2024
6f3b8db
missing newline (#4916)
Druue Jun 10, 2024
03f1367
Updated MySQL url parsing to surface the socket as host if in use, mi…
Druue Jun 12, 2024
e9ac668
tech(fmt): use wasm logging (#4919)
Druue Jun 13, 2024
9959b17
fix(mssql): varchar params should not cause high cpu usage (#4918)
Weakky Jun 14, 2024
e974ca8
fix: json protocol should raise rich error on unknown nested field (#…
Weakky Jun 14, 2024
27c0eb3
chore(deps): update dependency tsx to v4.15.1 (#4900)
renovate[bot] Jun 17, 2024
4c3db41
fix: concurrent writes on native SQLite (#4907)
jkomyno Jun 17, 2024
05b7e05
fix(prisma-fmt): use UTF-16 offset in the response for the schema tha…
key-moon Jun 18, 2024
836ad78
fix(query-engine): uncomment D1 "createMany" tests (#4925)
jkomyno Jun 18, 2024
5e01b93
tech(fmt): extract LSPContext struct (#4924)
Druue Jun 19, 2024
bd07760
prisma-fmt: Expose the file generator block was defined in (#4930)
Jun 20, 2024
9f3337c
feat(prisma-fmt): Add source file path to datasource block too (#4932)
Jun 20, 2024
5677c5d
fix(fts): rename order by input type name (#4922)
Weakky Jun 24, 2024
d56fe2e
fix(query-engine): fix D1 tracing bug on comments (#4931)
jkomyno Jun 24, 2024
293bb8f
fix: support 1-m relevance ordering (#4915)
Weakky Jun 24, 2024
34ace0e
tech(fmt/psl): prep-work for further language-server support (#4933)
Druue Jun 24, 2024
9b8d05f
feat(fmt): lsp find references (#4934)
Druue Jul 3, 2024
c41dd5b
chore(psl/fmt): bump lsp-types (#4944)
Druue Jul 9, 2024
3aad0d1
chore(fmt): cleanup text_document_completion (#4837)
Druue Jul 10, 2024
4b84e51
feat(prisma-fmt): add get_datamodel method (#4946)
aqrln Jul 10, 2024
5954db1
feat(fmt): lsp hover (#4923)
Druue Jul 10, 2024
9618390
feat(dmmf): add full index information (#4949)
aqrln Jul 11, 2024
c4fe130
perf: serialize raw results as arrays instead of object (#4939)
Weakky Jul 12, 2024
d0037d0
feat(fmt): find references of field names (#4952)
Druue Jul 15, 2024
9721e9b
feat(fmt): add functionality from prisma-fmt as quick fixes (#4945)
Druue Jul 15, 2024
393aa35
impr(fmt): relation qf (#4953)
Druue Jul 15, 2024
7484fd8
ci: Run mysql tests on GH Action (#4951)
Jul 16, 2024
15f8fe4
fix(qe): support MySQL base64 newlines (#4955)
Weakky Jul 17, 2024
77b82f6
fix(psl): handle named args in ds url env (#4958)
Druue Jul 19, 2024
68bfdeb
chore(deps): update to latest chrono (#4956)
Weakky Jul 19, 2024
f66d888
ci: Migrate to GH Actions for release (#4947)
Jul 22, 2024
a2d1c42
ci: Post gh-actions migration cleanup (#4962)
Jul 22, 2024
ff166c7
refactor: expose `ColumnType` to `quaint::ResultSet` (#4960)
Weakky Jul 22, 2024
a6977e5
ci: Restore compilation check on PR (#4963)
Jul 23, 2024
46930e7
fix: query batch compact issue (#4911)
pagewang0 Jul 31, 2024
b438c24
fix(join): properly coerce json list (#4690)
Weakky Jul 31, 2024
714bbd4
fix: dedup field names when compacting (#4969)
Weakky Aug 1, 2024
4c784e3
feat: add support for uuid v7 (#4877)
mcuelenaere Aug 1, 2024
662419b
fix: remove actor system for transactions (#4940)
laplab Aug 5, 2024
d7c6eca
feat: add introspectSql command (#4941)
Weakky Aug 5, 2024
fc5e53a
ci: fix cargo-codspeed installation (#4973)
aqrln Aug 7, 2024
8c1ddb7
fix(D1): numerical filters and aggregations + emulated referential ac…
jkomyno Aug 8, 2024
e1242e1
Revert "fix: remove actor system for transactions (#4940)" (#4975)
Aug 9, 2024
98ab935
fix: nested some filters should work (#4968)
Weakky Aug 12, 2024
d33dcc5
chore: update Rust to 1.80.1 (#4972)
aqrln Aug 12, 2024
44f753d
feat: improve type inference for sqlite (typedsql) (#4976)
Weakky Aug 12, 2024
ae18f91
chore(deps): bump openssl from 0.10.60 to 0.10.66 (#4965)
dependabot[bot] Aug 13, 2024
cb8fbf2
feat: upgrade mongodb crate to version 3 (#4978)
laplab Aug 15, 2024
c356d1b
feat: integrate mongodb fix for ipv6 (#4981)
laplab Aug 20, 2024
b5beb48
fix(ci): switch to upstream ps-http-sim from our fork (#4983)
aqrln Aug 20, 2024
8a3982b
feat(typedsql): support column & param nullability (#4979)
Weakky Aug 23, 2024
0bc306e
fix(typedsql): mysql should work with `@param` notations (#4985)
Weakky Aug 23, 2024
de1356e
chore: Remove outdated pnpm lockfile from query-engine-wasm (#4903)
janpio Aug 24, 2024
5fe2181
fix(ci): add sanity check to build.rs scripts, fixed "detected dubiou…
jkomyno Aug 26, 2024
8225295
fix: make it possible to build the engines without `.git` directory (…
aqrln Aug 28, 2024
611ef41
fix(qe): forward join fields for nested filters in m2m (#4994)
aqrln Sep 2, 2024
f2561ec
Revert "chore(deps): bump openssl from 0.10.60 to 0.10.66" (#4995)
jkomyno Sep 2, 2024
190a98f
fix(driver-adapters): PlanetScale transactions (#4967)
jkomyno Sep 5, 2024
c9ff577
qe: Add "strictUndefinedChecks" preview feature (#4997)
Sep 12, 2024
c57dd2b
fix(ci): fix SQL Server 2017 (#5003)
jkomyno Sep 23, 2024
06fc58a
fix(quaint): extract constraint name from CockroachDB foreign key con…
jkomyno Sep 23, 2024
36cb94e
chore(ci): temporarily move to Ubuntu 20.04 to circumvent cache issue…
jkomyno Sep 24, 2024
b43a787
Fix typo in connector-test-kit README (#4999)
LucianBuzzo Sep 24, 2024
031f4d3
Fix typo in query engine constructor error message (#5006)
austin-tildei Sep 26, 2024
00f0d73
fix(mongodb-query-connector): add missing span for aggregate (#5013)
aqrln Oct 7, 2024
6a192e2
feat(mongodb-query-connector): add full queries to the spans (#5014)
aqrln Oct 9, 2024
edd552c
Migrations over WebSocket (#5010)
Oct 10, 2024
08713a9
fix(query-engine-wasm): reduce size of `postgres` Query Engine after …
jkomyno Oct 15, 2024
b9903dc
fix(schema-engine): Ensure WS migrations can use shadow database (#5021)
Oct 17, 2024
155af62
chore: update toolchain and fix lint errors (#5022)
aqrln Oct 18, 2024
4fe298b
feat: add header to specify query timeout (#4988)
laplab Oct 18, 2024
8263a1f
feat(telemetry): add dynamic "db.system" attribute to OTEL spans (#5019)
jkomyno Oct 22, 2024
a87a639
Update mobc and metrics crates (#5015)
Oct 24, 2024
4b67dc7
fix: decouple metrics and tracing (#5023)
aqrln Oct 24, 2024
042b086
fix: timed out fetching a new connection from the connection pool. (#…
youxq Oct 30, 2024
00b1df9
fix(metrics): ensure consistent metrics for one engine (#5028)
aqrln Oct 30, 2024
dc59d1c
bump rust-postgres (#5027)
tmm1 Nov 1, 2024
feda6ce
fix(schema-engine): fix migrate diff on MySQL for foreign key index r…
jkomyno Nov 1, 2024
2428ad6
fix(quaint): forward subscriber and recorder to spawned tasks (#5033)
aqrln Nov 4, 2024
387bb64
chore(driver-adapters): update napi to 2.16.13 (#5035)
jkomyno Nov 4, 2024
531ffed
fix: remove actor system for transactions, refactor iTX and tracing (…
aqrln Nov 5, 2024
92f6d89
fix(nix): make engines buildable on darwin (#5036)
aqrln Nov 5, 2024
6051973
fix: temporarily rename `prisma:engine:query` back to `prisma:engine`…
aqrln Nov 5, 2024
2c64fd3
feat(quaint): upgrade tiberius to 0.12.3 (#5037)
jkomyno Nov 7, 2024
e829754
chore!: bump minimal supported Node-API version to 9 (#5040)
aqrln Nov 11, 2024
62bc048
ci: fix build-engines.yml workflow failing on most pull requests (#5041)
aqrln Nov 11, 2024
29bc8ca
fix: remove unused itx actors file (#5042)
LucianBuzzo Nov 12, 2024
711cd40
fix(schema): fix type clash for generated relation filter (#5029) (#5…
jkomyno Nov 15, 2024
378004b
Revert "fix: temporarily rename `prisma:engine:query` back to `prisma…
aqrln Nov 15, 2024
5b155e0
fix(pest): be inclusive of unicode characters in identifiers to intro…
Druue Nov 19, 2024
90c6eb3
fix(qe): fix broken shebang in query-engine-wasm/build.sh (#5050)
aqrln Nov 21, 2024
5e70d19
feat(psl, query-engine, schema-engine): add `cuid(2)` support, fix `u…
jkomyno Nov 22, 2024
06d4b2f
feat(psl): GA `fullTextIndex` for every supported provider: `mysql`, …
jkomyno Nov 25, 2024
d3a1c9a
feat: include field native type attributes data to DMMF (#5009)
pasha-vuiko Nov 26, 2024
4180c29
feat: add schema to dmmf (#5039)
aqrln Nov 26, 2024
c1f5600
feat(psl): GA `fullTextSearch` for `mysql`, introduce `nativeFullText…
jkomyno Nov 27, 2024
0160cc2
fix: respect isolation level parameter and defaults (#5056)
jacek-prisma Nov 27, 2024
1886abc
feat(psl): add "async", "await", "using" to the list of reserved word…
jkomyno Nov 28, 2024
5dbef10
feat(schema-engine): use pk for implicit join tables on postgres (#5057)
aqrln Nov 28, 2024
47ce11e
chore(deps): update dependency typescript to v5.7.2 (#4938)
renovate[bot] Nov 30, 2024
90f8060
chore(deps): update ghcr.io/mattrobenolt/ps-http-sim docker tag to v0…
renovate[bot] Nov 30, 2024
06fcce2
chore(deps): update rtcamp/action-slack-notify action to v2.3.2 (#5061)
renovate[bot] Nov 30, 2024
025d69d
chore(deps): update dependency tsx to v4.19.2 (#5062)
renovate[bot] Nov 30, 2024
8b4198b
chore(deps): update cachix/install-nix-action action to v30 (#5064)
renovate[bot] Nov 30, 2024
b5a4b8f
chore(deps): update suzuki-shunsuke/github-action-renovate-config-val…
renovate[bot] Nov 30, 2024
d6d59dd
fix: allow keys of different types to make batching logic consistent …
jacek-prisma Dec 2, 2024
c74f897
chore: update rust to 1.83.0 (#5068)
aqrln Dec 2, 2024
f211204
fix(psl): prevent panics on ID generator parsing logic (#5076)
jkomyno Dec 5, 2024
f15691e
chore: upgrade to pnpm 9 (#5077)
aqrln Dec 6, 2024
57a00c8
fix: correctly handle foreign keys when dropping mysql indexes (#5073)
jacek-prisma Dec 6, 2024
f52f2d8
fix(ci): update codspeed to v3 and pin ubuntu to 24.04 (#5081)
aqrln Dec 10, 2024
34f162e
fix: strip traceparent comment from info_span (#5078)
jacek-prisma Dec 10, 2024
3872ce4
fix: include traceparent in nested queries (#5080)
jacek-prisma Dec 10, 2024
81600e1
feat(psl): add support for multi-line comments (#5083)
jkomyno Dec 13, 2024
99168c5
feat: configurable caching for postgres with support for tracing (#5082)
jacek-prisma Dec 13, 2024
995e205
chore(deps): update vitess/vttestserver:mysql80 docker digest to eb07…
renovate[bot] Dec 14, 2024
d0b7335
fix(tracing): rework capturing and use it for all requests (#5049)
aqrln Dec 16, 2024
5b4fe75
Revert "chore(deps): update vitess/vttestserver:mysql80 docker digest…
aqrln Dec 16, 2024
199ce40
chore: fix prisma/prisma#25855 (#5085)
jkomyno Dec 16, 2024
79c7f7d
fix(driver-adapters): rename one missed span attribute (#5086)
aqrln Dec 16, 2024
a5ab6a9
fix(query-engine-wasm): add response_json_serialization span (#5089)
aqrln Dec 16, 2024
40232c9
feat: promote tracing to GA (#5087)
aqrln Dec 16, 2024
caaf939
fix(qe-wasm): make traces consistent with node-api engine (#5090)
aqrln Dec 17, 2024
11f085a
fix(telemetry): assign our own span IDs (#5091)
aqrln Dec 17, 2024
3dc72ed
feat: sqlite JSON support (#5088)
jacek-prisma Dec 18, 2024
acc7a89
fix: avoid unreachable code with empty datamodel (#5093)
jacek-prisma Dec 18, 2024
4c6d8d3
fix: convert small integers of unknown type into i32 for driver adapt…
jacek-prisma Dec 19, 2024
3aa9260
feat: ULID support (#5092)
jacek-prisma Dec 19, 2024
59c39b6
chore(ci): migrate engine size dashboard to pure bash and GH Actions …
aqrln Dec 19, 2024
cc0167b
feat(psl): make omitApi GA (#5097)
aqrln Dec 20, 2024
aef02d5
chore(driver-adapters): refactor query-engine test executor (#5100)
jkomyno Dec 30, 2024
a510d27
feat: implement updateManyAndReturn (#5098)
jacek-prisma Jan 2, 2025
c49e56c
fix: update test sqlite capabilities and fix some issues (#5102)
jacek-prisma Jan 2, 2025
51db5cf
feat: sqlite enums (#5101)
jacek-prisma Jan 6, 2025
4123509
feat(driver-adapters): add "version()" support to QuaintQueryable (#5…
jkomyno Jan 7, 2025
169dafa
feat(schema-engine-wasm): wasm-compatible `sql-schema-describer`, `sc…
jkomyno Jan 8, 2025
66ff515
feat(deleteMany): add limit option to deleteMany (#5105)
FGoessler Jan 8, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
27 changes: 0 additions & 27 deletions .buildkite/engineer

This file was deleted.

8 changes: 0 additions & 8 deletions .cargo/config.toml

This file was deleted.

88 changes: 88 additions & 0 deletions .config/nextest.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,88 @@
[store]
# The directory under the workspace root at which nextest-related files are
# written. Profile-specific storage is currently written to dir/<profile-name>.
dir = "target/nextest"

# This section defines the default nextest profile. Custom profiles are layered
# on top of the default profile.
[profile.default]
# "retries" defines the number of times a test should be retried. If set to a
# non-zero value, tests that succeed on a subsequent attempt will be marked as
# flaky. Can be overridden through the `--retries` option.
# Examples
# * retries = 3
# * retries = { backoff = "fixed", count = 2, delay = "1s" }
# * retries = { backoff = "exponential", count = 10, delay = "1s", jitter = true, max-delay = "10s" }
retries = { backoff = "fixed", count = 5, delay = "1s", jitter = true }

# The number of threads to run tests with. Supported values are either an integer or
# the string "num-cpus". Can be overridden through the `--test-threads` option.
test-threads = "num-cpus"

# The number of threads required for each test. This is generally used in overrides to
# mark certain tests as heavier than others. However, it can also be set as a global parameter.
threads-required = 1

# Show these test statuses in the output.
#
# The possible values this can take are:
# * none: no output
# * fail: show failed (including exec-failed) tests
# * retry: show flaky and retried tests
# * slow: show slow tests
# * pass: show passed tests
# * skip: show skipped tests (most useful for CI)
# * all: all of the above
#
# Each value includes all the values above it; for example, "slow" includes
# failed and retried tests.
#
# Can be overridden through the `--status-level` flag.
status-level = "pass"

# Similar to status-level, show these test statuses at the end of the run.
final-status-level = "flaky"

# "failure-output" defines when standard output and standard error for failing tests are produced.
# Accepted values are
# * "immediate": output failures as soon as they happen
# * "final": output failures at the end of the test run
# * "immediate-final": output failures as soon as they happen and at the end of
# the test run; combination of "immediate" and "final"
# * "never": don't output failures at all
#
# For large test suites and CI it is generally useful to use "immediate-final".
#
# Can be overridden through the `--failure-output` option.
failure-output = "immediate-final"

# "success-output" controls production of standard output and standard error on success. This should
# generally be set to "never".
success-output = "never"

# Cancel the test run on the first failure. For CI runs, consider setting this
# to false.
fail-fast = false

# Treat a test that takes longer than the configured 'period' as slow, and print a message.
# See <https://nexte.st/book/slow-tests> for more information.
#
# Optional: specify the parameter 'terminate-after' with a non-zero integer,
# which will cause slow tests to be terminated after the specified number of
# periods have passed.
# Example: slow-timeout = { period = "60s", terminate-after = 2 }
slow-timeout = { period = "60s" }

# Treat a test as leaky if after the process is shut down, standard output and standard error
# aren't closed within this duration.
#
# This usually happens in case of a test that creates a child process and lets it inherit those
# handles, but doesn't clean the child process up (especially when it fails).
#
# See <https://nexte.st/book/leaky-tests> for more information.
leak-timeout = "100ms"

# This profile is activated if MIRI_SYSROOT is set.
[profile.default-miri]
# Miri tests take up a lot of memory, so only run 1 test at a time by default.
test-threads = 1
3 changes: 3 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[*.{yml,yaml}]
indent_style = space
indent_size = 2
33 changes: 18 additions & 15 deletions .envrc
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ export RUST_LOG=info
export PRISMA_DML_PATH=$(pwd)/dev_datamodel.prisma
export PRISMA2_BINARY_PATH="/usr/local/lib/node_modules/prisma2/"
export PRISMA_BINARY_PATH=$(pwd)/target/release/query-engine
export PRISMA_ENGINE_PROTOCOL="graphql"

### QE config vars, set to testing values ###
export SQLITE_MAX_VARIABLE_NUMBER=250000 # This must be in sync with the setting in the engineer build CLI
Expand All @@ -20,7 +19,13 @@ export SIMPLE_TEST_MODE="yes" # Reduces the amount of generated `relation_link_t
### QE specific logging vars ###
export QE_LOG_LEVEL=debug # Set it to "trace" to enable query-graph debugging logs
# export PRISMA_RENDER_DOT_FILE=1 # Uncomment to enable rendering a dot file of the Query Graph from an executed query.
# export FMT_SQL=1 # Uncomment it to enable logging formatted SQL queries
export FMT_SQL=1 # Uncomment it to enable logging formatted SQL queries

### Uncomment to run driver adapters tests. See query-engine-driver-adapters.yml workflow for how tests run in CI.
# export EXTERNAL_TEST_EXECUTOR="napi"
# export DRIVER_ADAPTER=pg # Set to pg, neon, planetscale, libsql or cfd1
# export PRISMA_DISABLE_QUAINT_EXECUTORS=1 # Disable quaint executors for driver adapters
# export DRIVER_ADAPTER_URL_OVERRIDE ="postgres://USER:PASSWORD@DATABASExxxx" # Override the database url for the driver adapter tests

# Mongo image requires additional wait time on arm arch for some reason.
if uname -a | grep -q 'arm64'; then
Expand All @@ -29,24 +34,22 @@ else
export INIT_WAIT_SEC="2"
fi

# Source the gitignored .envrc.local if it exists.
if test -f .envrc.local; then
watch_file .envrc.local
source .envrc.local
fi

# (Example env vars if you're not using the make commands, i.e. the config files, to set up query engine tests)
# export TEST_RUNNER="direct"
# export TEST_CONNECTOR="postgres"
# export TEST_CONNECTOR_VERSION="10"

# Set up env vars and build inputs from flake.nix automatically for nix users.
# Set up env vars and build inputs from shell.nix automatically for nix users.
# If you don't use nix, you can safely ignore this.
if command -v nix &> /dev/null
# You can set the DISABLE_NIX environment variable if you're in an environment
# where nix is pre-installed (e.g. gitpod) but you don't want to use it.
if command -v nix &> /dev/null && [ -z ${DISABLE_NIX+x} ]
then
if nix flake metadata > /dev/null; then
if type nix_direnv_watch_file &> /dev/null; then
nix_direnv_watch_file nix/shell.nix nix/all-engines.nix nix/args.nix
fi
use flake
fi
fi

# Source the gitignored .envrc.local if it exists.
if test -f .envrc.local; then
source .envrc.local
use nix
fi
40 changes: 0 additions & 40 deletions .github/workflows/benchmark.yml

This file was deleted.

49 changes: 0 additions & 49 deletions .github/workflows/build-apple-intel.yml

This file was deleted.

51 changes: 0 additions & 51 deletions .github/workflows/build-apple-silicon.yml

This file was deleted.

62 changes: 62 additions & 0 deletions .github/workflows/build-engines-apple-intel-template.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
name: Build Engines for Apple Intel

on:
workflow_call:
inputs:
commit:
description: 'Commit on the given branch to build'
type: string
required: false

jobs:
build:
name: 'MacOS Intel engines build for commit ${{ inputs.commit }}'
env:
SQLITE_MAX_VARIABLE_NUMBER: 250000
SQLITE_MAX_EXPR_DEPTH: 10000

# minimum supported version of macOS
MACOSX_DEPLOYMENT_TARGET: 10.15
runs-on: macos-13

steps:
- name: Output link to real commit
run: echo ${{ github.repository }}/commit/${{ inputs.commit }}

- name: Checkout ${{ inputs.commit }}
uses: actions/checkout@v4
with:
ref: ${{ inputs.commit }}

- uses: actions-rust-lang/setup-rust-toolchain@v1

- uses: actions/cache@v4
with:
path: |
~/.cargo/registry
~/.cargo/git
target
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}

- run: |
cargo build --release -p query-engine -p query-engine-node-api -p schema-engine-cli -p prisma-fmt

- name: Rename files
working-directory: ${{ github.workspace }}/target/release/
run: |
echo "Files in target/release before renaming"
ls -la .

mv libquery_engine.dylib libquery_engine.dylib.node

echo "Files in target/release after renaming"
ls -la .

- uses: actions/upload-artifact@v4
with:
name: darwin
path: |
${{ github.workspace }}/target/release/schema-engine
${{ github.workspace }}/target/release/prisma-fmt
${{ github.workspace }}/target/release/query-engine
${{ github.workspace }}/target/release/libquery_engine.dylib.node
Loading