Back to Pocketbase

Function auxNonconcurrentDB

static/jsvm/functions/_app.auxNonconcurrentDB.html

latest1.0 KB
Original Source

Function auxNonconcurrentDB

AuxNonconcurrentDB returns the nonconcurrent app auxiliary.db builder instance.

The returned db instance is limited only to a single open connection, meaning that it can process only 1 db operation at a time (other queries queue up).

This method is used mainly internally and in the tests to execute write (save/delete) db operations as it helps with minimizing the SQLITE_BUSY errors.

Most users should use simply AuxDB() as it will automatically route the query execution to AuxConcurrentDB() or AuxNonconcurrentDB().

In a transaction the AuxConcurrentDB() and AuxNonconcurrentDB() refer to the same *dbx.TX instance.

Returns Builder

Settings

Member Visibility

  • Inherited

Theme

OSLightDark

Generated using TypeDoc