Class ::nsmcp::UnifiedAccessDatabase (public)

 ::nx::Class ::nsmcp::UnifiedAccessDatabase[i]

Defined in /usr/local/ns/tcl/nsmcp/log-traffic-unified.tcl

Testcases:
No testcase defined.
Source code:
    :require trait ::nsmcp::AccessRecordSupport
    # nx::trait versions that export aliases publicly need explicit protection.
    foreach method [::nsmcp::AccessRecordSupport info methods -callprotection all] {
        ::nsf::method::property [self] $method call-private false
        ::nsf::method::property [self] $method call-protected true
    }

    :property settings:required
    :property {maxBytes 68719476736}

    :public method connect {} {
        #
        # Open a readable unified access-record session.
        #
        # Retry eligible store-lock failures and establish compatibility views,
        # closing the adapter on setup errors.
        #
        # @return A UnifiedAccessSession object.
        #

        set store [:accessRecordRetry ${:settings} [list :accessRecordReaderOpen ${:settings}]]
        if {![$store available]} {
            $store close
            error "access store pool checkout timed out"
        }
        try {
            $store legacyViews
        } on error {message options} {
            $store close
            return -options $options $message
        }
        return [::nsmcp::UnifiedAccessSession new -adapter $store]
    }

    :public method path {} {
        #
        # Return this server's dedicated access-record pool datasource.
        #
        # Pool configuration owns the persistent database filename.
        #
        # @return The server-specific SQLite filename.
        #

        return [file normalize [ns_config ns/db/pool/[dict get ${:settings} pool] datasource]]
    }
XQL Not present:
Generic, PostgreSQL, Oracle
[ hide source ] | [ make this the default ]
Show another procedure: