Releases: colopl/laravel-spanner
Releases · colopl/laravel-spanner
v5.2.2
v5.2.1
v5.2.0
Added
- Added deprecation warnings to
Connection::runDdl
andConnection::runDdls
(#98) - Added
ManagesMutations::insertOrUpdateUsingMutation
andUsesMutations::insertOrUpdateUsingMutation
to do upserts (#109) (Thanks Xfaider48) - Added Support for
Schema\Builder::dropIfExists()
(#115) - Added support for adding row deletion policy when modifying table (#124)
- Added Support for
Query\Builder::toRawSql()
(#123)
Changed
Connection::waitForOperation
andConnection::isDoneOperation
has been removed. (#99)- Update
export-ignore
entries in.gitattributes
(#104) (Thanks sasezaki) - Use abstract definitions on traits instead of relying on
@methods
@property
. (#120) - Stop using
call_user_func
(#121)
Fixed
v4.7.1
v5.1.0
Added
- Added
Connection::runDdlBatch
which runs DDLs in batch synchronously. (#86) - Added emulator support for
Connection::listSessions
. (#88) - Added
Schema\Grammar::typeDouble
for better compatibility. (#97)
Fixed
- Fixed bug where running
Connection::statement
with DDLs was not logging and was not triggering events. (#86)
Changed
- Use google-cloud-php's CacheSessionPool since the concerned bug has been fixed in v1.53. (#90)
- Separate session pool and authentication per connection so transaction works properly. (#89)
v5.0.0 (Laravel 10)
Updated composer.json to only support laravel 10
Fixed
Connection::reconnectIfMissingConnection
was changed fromprotected
topublic
to match laravel 10. (#77)- Query/Expression changed from
(string)$expr
to$expr->getValue($grammar)
. (#77) - Applied QueryException constructor change to
Schema/Grammar
. (#77)
Changed
- Checks that primary key is defined in schema and throws an exception if not defined. (#58)
Colopl\Spanner\Session
has been renamed toColopl\Spanner\SessionInfo
.Blueprint::stringArray
's$length
parameter is now optional and defaults to255
.- Auth and session pool no longer use the custom FileCacheAdapter and uses Symfony's FilesystemAdapter instead. (#63)
- Path for auth and session pool files have moved from
storage/framework/cache/spanner
tostorage/framework/spanner/{auth|session}
. (#63) - Default Session Not Found Error Mode was changed from
MAINTAIN_SESSION_POOL
toCLEAR_SESSION_POOL
(wasn't fully confident at the time, but I think it should be safe to assume it's working now). - Schema\Builder::getAllTables() now returns rows with
name
andtype
fields instead of list of strings (was implemented incorrectly). (#73) - Exception previously thrown in
Query/Builder
forsharedLock
,lockForUpdate
,insertGetId
was moved toQuery/Grammar
. (#76) - Query/Builder::lock will now throw
BadMethodCallException
if called. Was ignored in previous versions. (#76) - [Breaking Change] Commands are now only avaiable in cli mode (#81)
- Connections will now be closed after every job has been processed in the queue. (#80)
Refactored
- Rollback handling has been refactored to better readability. (#79)