|
saveRepository
|
The saveRepository function saves a block of records into the specified ObjectRepository. The
ObjectRepository is cleared before the block is written. The saveRepository function, in connection with
loadRepository, allows repositories to be read or written as blocks of records. In addition, the saveRepository function may save a new child repository into the specified parent
ObjectRepository and associate the child repository with the specified retrieval key. This allows repositories
to contain independently accessible, nested, blocks of records The saveRepository function allows multiple levels of nested repositories within a parent
ObjectRepository. Child repositories may contain further nested child repositories to any level of nesting.
Furthermore, each nested child repository may be accessed independent of either the parent repository or any
of the other child repositories. Note: saveRepository can only be used if the repository was created with compression.
(See the new function and the key: true argument combination). When to use Use the saveRepository function to save records into an Object Repository.
(saveRepository aGor aDirectory) Returns the Object Id of the ObjectRepository where the blocks were saved.
Here are a number of links to Lambda coding examples which contain this instruction in various use cases.
Example_ObjectRepository_saveRepository_001
Here are the links to the data types of the function arguments. Here are also a number of links to functions having arguments with any of these data types.
You can always talk with the AIS at aiserver.sourceforge.net.
Name
Description
AIS Types aGor The target ObjectRepository for the blocks to be saved ObjectRepository aDirectory A block, of objects, which is to be saved in the specified repository. Directory
Returns:
Examples
Argument Types
ObjectRepository
Directory
Symbol
Number
Text
How do I contact the AIS team?