• <GetStart>
  • CSPro User's Guide
    • The CSPro System
    • Data Dictionary Module
    • The CSPro Language
    • Data Entry Module
    • Batch Editing Applications
    • Tabulation Applications
    • Data Sources
      • CSPro DB
      • Encrypted CSPro DB
      • Text
      • JSON
      • None
      • In-Memory
      • Comma Delimited (CSV)
      • Semicolon Delimited
      • Tab Delimited
      • Excel
      • R
      • SAS
      • SPSS
      • Stata
      • CSPro Export
      • Case Read Optimization
    • CSPro Statements and Functions
    • Templated Reporting System
    • HTML and JavaScript Integration
    • Action Invoker
    • Appendix
  • <CSEntry>
  • <CSBatch>
  • <CSTab>
  • <DataViewer>
  • <TextView>
  • <TblView>
  • <CSFreq>
  • <CSDeploy>
  • <CSPack>
  • <CSDiff>
  • <CSConcat>
  • <Excel2CSPro>
  • <CSExport>
  • <CSIndex>
  • <CSReFmt>
  • <CSSort>
  • <ParadataConcat>
  • <ParadataViewer>
  • <CSCode>
  • <CSDocument>
  • <CSView>
  • <CSWeb>

In-Memory Data Source

Overview
The In-Memory data source is not associated with a file. It allows you to read and write cases just as you can to file-based data sources, with the cases persisting in memory for the duration of the running application, or until the data source is closed. This data source is useful for performing temporary case-related calculations or management.
The initial behavior of the In-Memory data source is as if a file were opened with no cases. After writing a case, the data source will report that it has a case and loading that specific case will succeed. When used as the data source attached to the main dictionary of a data entry application, cases added will show in the case listing, but these cases will not exist once the program closes.
A similar data source, None, is also not associated with a data file, but cases do not persist in memory.
Typically CSPro uses a file extension to determine what kind of data source to open, but because there is no file associated with an In-Memory data source, you must use the connection string to specify that you want to use an In-Memory data source. For example, the following connection string, specified in a data entry PFF, would result in the main dictionary being attached to an In-Memory data source:
InputData=|type=Memory
Functionality
The In-Memory data source supports the following features:
FeatureSupported
Reading cases
✔
Writing cases
✔
Notes, case labels, and case statuses
✔
Storage of more than one kind of record
✔
Binary data items
✔
Deleting cases
✔
Undeleting cases
✔
Syncing data
✘
Cases with duplicate keys
✔
Case identification via UUID
✔
Contains an embedded dictionary
✘
Allows record sorts
✘
See also: Data Sources