Skip to content

Releases: colopl/laravel-spanner

v5.2.2

22 Aug 06:27
9bbc8c0
Compare
Choose a tag to compare

Fixed

  • Fixed a case where queries were not being retried on "Session Not Found" errors when session pool is undefined (#129)

v5.2.1

16 Aug 09:59
Compare
Choose a tag to compare

Fixed

  • Escape list for Query/Builder::toRawSql (#127)

v5.2.0

14 Aug 06:54
Compare
Choose a tag to compare

Added

  • Added deprecation warnings to Connection::runDdl and Connection::runDdls (#98)
  • Added ManagesMutations::insertOrUpdateUsingMutation and UsesMutations::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 and Connection::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

  • Transaction state was not being cleared if rolled back failed. (#107)
  • Column was not escaped for clause REPLACE ROW DELETION POLICY (#125)

v4.7.1

17 May 01:02
Compare
Choose a tag to compare

Fixed:

  • Transaction state was not being cleared if rolled back failed (#107)

v5.1.0

01 May 05:28
Compare
Choose a tag to compare

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)

05 Apr 01:49
Compare
Choose a tag to compare

Updated composer.json to only support laravel 10

Fixed

Changed

  • Checks that primary key is defined in schema and throws an exception if not defined. (#58)
  • Colopl\Spanner\Session has been renamed to Colopl\Spanner\SessionInfo.
  • Blueprint::stringArray's $length parameter is now optional and defaults to 255.
  • 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 to storage/framework/spanner/{auth|session}. (#63)
  • Default Session Not Found Error Mode was changed from MAINTAIN_SESSION_POOL to CLEAR_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 and type fields instead of list of strings (was implemented incorrectly). (#73)
  • Exception previously thrown in Query/Builder for sharedLock, lockForUpdate, insertGetId was moved to Query/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)

v4.7.0

27 Mar 02:02
Compare
Choose a tag to compare

Added

  • Support Blueprint::text (translates to STRING(MAX)). (#83)

Chore

  • Removed ramsey/uuid from composer.json since laravel already includes it. (#75)

Fixed

  • Expressions given as $value in Schema\Grammar::formatDefaultValue will now go through getValue to match upstream (No behavioral change). (#78)

v4.6.0

15 Feb 05:32
Compare
Choose a tag to compare

Fixed

  • use interleave key on Eloquent::refresh() and Eloquent::fresh(). (#72)
  • match forceIndex's arg with base class which was added in laravel 9.52. (#74)

v4.5.0

31 Jan 03:00
Compare
Choose a tag to compare

Added

  • Command spanner:warmup now has a new option --skip-on-error which will skip any connections which throws a ServiceException. (#70)

Fixed

  • Transaction state was not cleared if a NotFoundException was raised during rollback. (#69)

v4.4.0

24 Jan 01:18
f14e67a
Compare
Choose a tag to compare

Added

  • feature: add spanner:cooldown command (#54)
  • feature: add --refresh option for spanner:warmup command (#57)
  • feature: support Schema\Builder::getAllTables() (#65)
  • feature: add --sort and --order option to spanner:sessions command (#67)

Fixed

  • fix: session clear was not working correctly on CLI sessions (#66)
  • chore: schema tests should always run since speed is no longer an issue (#64)