GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
OpenXPKI::Server::Database::Role::MergeSupport(3) User Contributed Perl Documentation OpenXPKI::Server::Database::Role::MergeSupport(3)

OpenXPKI::Server::Database::Role::MergeSupport - Moose role for database drivers to indicate native support for MERGE (= REPLACE = INSERT or UPDATE).

This role indicates that the DBMS natively supports SQL MERGE (you could also call it REPLACE) in some form.

Must return the DBMS specific SQL query (OpenXPKI::Server::Database::Query) that does an SQL MERGE.

When called it gets passed the following parameter (additional to $self):

  • $dbi - the OpenXPKI::Server::Database instance
  • $into - Table name (Str, required)
  • $set - Columns that are always set (INSERT or UPDATE). Hash with column name / value pairs.
  • $set_once - Columns that are only set on INSERT (additional to those in the "where" parameter. Hash with column name / value pairs.
  • $where - WHERE clause specification that must contain the PRIMARY KEY columns and only allows "AND" and "equal" operators: "<{ col1 =" val1, col2 => val2 }>> (HashRef)
2022-05-14 perl v5.32.1

Search for    or go to Top of page |  Section 3 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.