Note: There is a newer version (1.6.0) of this package available. Click here to view docs for the latest version.
Ballerina library
persist.inmemory
Module persist.inmemory

ballerinax/persist.inmemory Ballerina library
1.5.0
Classes
persist.inmemory: PersistInMemoryStream
next
Isolated Function
function next() returns record {| value record {} |}|Error?
close
Isolated Function
function close() returns Error?
Clients
persist.inmemory: InMemoryClient
Isolated
runReadQuery
Isolated Function
Parameters
- fields string[] (default []) -
runReadByKeyQuery
Isolated Function
function runReadByKeyQuery(typedesc<record {}> rowType, anydata key, string[] fields, string[] include, typedesc<record {}>[] typeDescriptions) returns record {}|Error
Parameters
- rowType typedesc<record {}> -
- key anydata -
- fields string[] (default []) -
- include string[] (default []) -
- typeDescriptions typedesc<record {}>[] (default []) -
getManyRelations
Isolated Function
function getManyRelations(record {} 'object, string[] fields, string[] include, typedesc<record {}>[] typeDescriptions) returns Error?
Parameters
- 'object record {} -
- fields string[] -
- include string[] -
- typeDescriptions typedesc<record {}>[] -
getKeyFields
Isolated Function
function getKeyFields() returns string[]
addKeyFields
Isolated Function
Parameters
- fields string[] -
Records
persist.inmemory: TableMetadata
Closed record
Represents the metadata of an entity.
Fields
- keyFields string[] - Array of strings containing key field names
- queryOne
function(anydata) returns (record {}|NotFoundError)
- Function pointer for query by key
Import
import ballerinax/persist.inmemory;
Metadata
Released date: 4 months ago
Version: 1.5.0
License: Apache-2.0
Compatibility
Platform: java21
Ballerina version: 2201.11.0
GraalVM compatible: Yes
Pull count
Total: 715
Current verison: 8
Weekly downloads
Keywords
persist
inmemory
Contributors
Dependencies