Sitelet https://github.com/illuminate/database/tags
Skip to content

Tags: illuminate/database

Tags

v13.34.0

Toggle v13.34.0's commit message
Fix Builder::with() when a null callback is passed explicitly (#61769)

v13.33.0

Toggle v13.33.0's commit message

Unverified

This commit is not signed, but one or more authors requires that any commit attributed to them is signed.
[13.x] feat: refresh configured model attributes after writes (#61523)

* feat: refresh configured model attributes after writes

Allow database-generated columns to be reloaded before model events
without refreshing every attribute on the model.

* add attribute

---------

Co-authored-by: Taylor Otwell <taylor@laravel.com>

v12.69.3

Toggle v12.69.3's commit message
backport server options feature

v13.32.0

Toggle v13.32.0's commit message
[13.x] Fix Factory::raw() with a count of zero (#61510)

v13.31.0

Toggle v13.31.0's commit message
Apply fixes from StyleCI (#61470)

v12.69.2

Toggle v12.69.2's commit message

Unverified

This commit is not signed, but one or more authors requires that any commit attributed to them is signed.
Wrap the closure return type in `withFreshQueryLog()` (#61458)

Co-authored-by: Sander Muller <9074391+SanderMuller@users.noreply.github.com>

v13.30.1

Toggle v13.30.1's commit message
[13.x] Fix `limit()` being ignored on `update()` for SQL Server (#61394)

* Support limit on update for SQL Server

* Add tests for update with a limit on SQL Server

v13.30.0

Toggle v13.30.0's commit message
[13.x] spl_object_id over hash (#61372)

* [13.x] spl_object_id over hash

* Update Builder.php

v13.29.0

Toggle v13.29.0's commit message
[13.x] Fix MariaDB vector distance SQL and add AsVector Eloquent cast…

… (#61337)

* Fix MariaDB vector distance SQL and add AsVector Eloquent cast

MariaDB's VEC_DISTANCE_* functions only accept VECTOR arguments, so the
JSON text bound by the vector query builder methods must be converted
with vec_fromtext(). Without it every whereVectorSimilarTo /
whereVectorDistanceLessThan / orderByVectorDistance / selectVectorDistance
call fails on MariaDB with "4079 Illegal parameter data type varchar for
operation 'VEC_DISTANCE_COSINE'".

Adds an AsVector cast so Eloquent models can read and write vector
columns: it decodes MariaDB's little-endian float32 bytes as well as
pgvector / vec_totext() JSON text, and writes vec_fromtext('[...]') on
MariaDB (which rejects text or raw bytes bound to a VECTOR column) or a
plain JSON string elsewhere.

* Update MariaDbGrammar.php

* formatting

---------

Co-authored-by: Taylor Otwell <taylor@laravel.com>

v13.27.0

Toggle v13.27.0's commit message
Add Postgres keepalive DSN options (#61307)