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::Session::Driver::Database(3) User Contributed Perl Documentation OpenXPKI::Server::Session::Driver::Database(3)

OpenXPKI::Server::Session::Driver::Database - Session implementation that persists to the database

To use the global database handle ("CTX('dbi')":

    my $session = OpenXPKI::Server::Session->new(
        type => "Database",
    );

To specify a different database (i.e. use a separate database handle):

    my $session = OpenXPKI::Server::Session->new(
        type => "Database",
        config => {
            driver => "SQLite",
            name => "/tmp/mydb.sqlite",
        },
    );

The methods in this class do not execute "COMMIT"s on the database if it's configured to reuse the global database handle. This is to make sure transcations started in the core application logic are not disturbed.

If an own database handle is created, it's configured to do "AUTOCOMMIT"s.

Please see OpenXPKI::Server::Session::DriverRole for a description of the available methods.
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.