Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions src/Database/Adapter.php
Original file line number Diff line number Diff line change
Expand Up @@ -1089,6 +1089,13 @@ abstract public function getSupportForGetConnectionId(): bool;
*/
abstract public function getSupportForUpserts(): bool;

/**
* Is upsert via arbitrary unique indexes supported?
*
* @return bool
*/
abstract public function getSupportForUpsertOnUniqueIndex(): bool;
Comment thread
abnegate marked this conversation as resolved.

/**
* Is vector type supported?
*
Expand Down
5 changes: 5 additions & 0 deletions src/Database/Adapter/MariaDB.php
Original file line number Diff line number Diff line change
Expand Up @@ -1840,6 +1840,11 @@ public function getSupportForUpserts(): bool
return true;
}

public function getSupportForUpsertOnUniqueIndex(): bool
{
return true;
}

public function getSupportForSchemaAttributes(): bool
{
return true;
Expand Down
5 changes: 5 additions & 0 deletions src/Database/Adapter/Memory.php
Original file line number Diff line number Diff line change
Expand Up @@ -1924,6 +1924,11 @@ public function getSupportForUpserts(): bool
return false;
}

public function getSupportForUpsertOnUniqueIndex(): bool
{
return false;
}

public function getSupportForVectors(): bool
{
return false;
Expand Down
5 changes: 5 additions & 0 deletions src/Database/Adapter/Mongo.php
Original file line number Diff line number Diff line change
Expand Up @@ -3299,6 +3299,11 @@ public function getSupportForUpserts(): bool
return true;
}

public function getSupportForUpsertOnUniqueIndex(): bool
{
return false;
}

public function getSupportForReconnection(): bool
{
return false;
Expand Down
5 changes: 5 additions & 0 deletions src/Database/Adapter/Pool.php
Original file line number Diff line number Diff line change
Expand Up @@ -493,6 +493,11 @@ public function getSupportForUpserts(): bool
return $this->delegate(__FUNCTION__, \func_get_args());
}

public function getSupportForUpsertOnUniqueIndex(): bool
{
return $this->delegate(__FUNCTION__, \func_get_args());
}

public function getSupportForVectors(): bool
{
return $this->delegate(__FUNCTION__, \func_get_args());
Expand Down
5 changes: 5 additions & 0 deletions src/Database/Adapter/Postgres.php
Original file line number Diff line number Diff line change
Expand Up @@ -2156,6 +2156,11 @@ public function getSupportForUpserts(): bool
return true;
}

public function getSupportForUpsertOnUniqueIndex(): bool
{
return false;
}
Comment thread
abnegate marked this conversation as resolved.

/**
* Is vector type supported?
*
Expand Down
5 changes: 5 additions & 0 deletions src/Database/Adapter/SQLite.php
Original file line number Diff line number Diff line change
Expand Up @@ -989,6 +989,11 @@ public function getSupportForUpserts(): bool
return false;
}

public function getSupportForUpsertOnUniqueIndex(): bool
{
return false;
}

/**
* Is hostname supported?
*
Expand Down
Loading