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).


Use the saveRepository function to save records into an Object Repository.




(saveRepository aGor aDirectory)

Arguments Name Type Description
Argument:aGorObjectRepository The target ObjectRepository for the blocks to be saved
Argument:aDirectoryDirectory A block, of objects, which is to be saved in the specified repository.


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.


Argument Types

Here are the links to the data types of the function arguments.

ObjectRepository Directory Symbol Number

Here are also a number of links to functions having arguments with any of these data types.

++ += + /=
/ *= * --
-= - abortTransaction abs
acos add1 addMethod addi
append apply argument arithmetic
asin atan attachLibrarian avg
beginTransaction binaryInsert binarySearch boolean
cdr char character checkPointTransaction
clean code commitTransaction compareEQ
compareGE compareGT compareLE compareLT
compareNE compare comparison compress
cons copy cos cosh
count date day days360
debug decode defchild defclass
define(macro) define defmacro defmethod
deforphan defriend defun deg
delete detachLibrarian dimension disassemble
display divi downcase encode
exp exportCsv exportSbf exportTab
expt fact fdisplay fileClose
fileCopy fileDisplay fileEraseDir fileErase
fileExists fileMakeDir fileOpen fileReadAll
fileRead fileSizeOf fileWriteAll fileWrite
filewriteln floor fraction gc
getGlobalValue getSymbolTable getTickCount globalBinding
hour iadd icompareEQ icompareGE
icompareGT icompareLE icompareLT icompareNE
idiv imod importCsv importSbf
importTab imul insert inside
inspect integer isAtom isBitVector
isBoolean isBound isByteVector isCharAlphabetic
isCharAlphanumeric isCharLowercase isCharName isCharNumeric
isCharUppercase isCharWhitespace isChar isCharacter
isComplex isDate isDictionary isDirectory
isEqual isError isEven isExact
isFloatVector isIdentical isImmediate isInexact
isInside isIntegerVector isInteger isLambda
isMatrix isMember isMoney isNegative
isNull isNumberMatrix isNumberVector isNumber
isObjectVector isObject isOdd isPair
isPcodeVector isPositive isString isStructure
isSymbol isText isTransaction isType
isVector isZero isub julian
kurtosis left length list
loadModule loadRepository loadWorkspace lock
log10 log2 log logbase
macroReplace makeQuotedList makeQuotedSymbol map
mapc max median member
methodsOf mid min minute
mod modi money month
muli nadd ncompareEQ ncompareGE
ncompareGT ncompareLE ncompareLT ncompareNE
ndiv new nmod nmul
now nsub number objectToDirectory
objectToMatrix objectToNumMatrix objectToNumVector objectToVector
offset openLog pair parent
parse pi pointer product
proplist proprecord putprop qt
rad random randomize range
refAttributes refLibrarian refValues ref
remProp remove rename replace
rept resize right round
run saveImmediate saveModule saveObject
saveRepository saveWorkspace second setCar
setCdr setLastCdr set setf
setq sigmoid sign sin
sinh sizeof skew sleep
sort sql sqrt srandom
stdev stdevp stringFill stringToBVector
stringToVector string sub1 subi
submit substitute substringFill substring
sum sumsqr svmRegression symbolToTypeCode
symbol system tan tanh
text time trim type
uniqueInsert unlock upcase var
varp vectorBinaryInnerProduct vectorBipolarInnerProduct vectorCosineInnerProduct
vectorCubeInnerProduct vectorDelete vectorExpInnerProduct vectorFill
vectorInnerProduct vectorLogInnerProduct vectorQuartInnerProduct vectorQuintInnerProduct
vectorSigmoidInnerProduct vectorSineInnerProduct vectorSquareInnerProduct vectorTanInnerProduct
vectorTanhInnerProduct writelg writeln year

Analytic Information Server (AIS)

AIS Component Systems

  • Smartbase Engine
  • QT C++ Libraries
  • MySQL Relational Database
  • AIS Lisp Libraries
  • Rapid Analytic Demo IDE