Changes

Jump to navigation Jump to search
No change in size ,  13:44, 20 July 2022
m
Text replacement - "db:pre" to "db:get"
!Description
|-
|{{Function|Database|db:preget}}
|{{Code|db:get("db", "path/to/docs")}}
|Returns all documents that are found in the database {{Code|db}} at the (optional) path {{Code|path/to/docs}}.
* In the standalone context, a main-memory database can be created (using <code>CREATE DB</code>), which can then be accessed by subsequent commands.
* If a BaseX server instance is started, and if a database is created in its context (using <code>CREATE DB</code>), other BaseX client instances can access (and update) this database (using OPEN, db:preget, etc.) as long as no other database is opened/created by the server.
* You can force an ordinary database to being copied to memory by using <code>db:get('some-db') update {}</code>
Bureaucrats, editor, reviewer, Administrators
13,550

edits

Navigation menu