A data space is like a regular database. It stores structured data in named tables, so that the data can be saved, queried and updated from any of your solutions.
Each data space has a name and one or more tables, and each table has a defined set of fields. When a table is created, Panaptic automatically provides operations to create, read, list, update and delete its records, so applications and code functions can work with the data straight away. You can also query across tables, and across data spaces, using SQL.
You usually don’t need to design a data space yourself. When you ask the agent for an application that needs to remember something, it will propose a data space to hold it and ask you to confirm the tables before creating them. You can also ask for one directly:
Create a data space to track customer orders, with tables for customers, orders and order items.
It is good practice to have code functions do the reading and writing, rather than each application working with the tables directly. That way every solution applies the same rules to the data, and the data stays consistent over time.
Data in a data space is shared across your organisation - everyone who can use the solution sees the same records. If each user should see only their own data, say so when you ask the agent, as in the Quickstart.
Changes to a table’s design are kept in a version history, so you can see what changed and restore an earlier design. Deleting a data space removes all of its tables and records, and cannot be undone.
From your main user session, you can launch the ‘Data Spaces’ app to browse your data spaces, their tables, and the records they hold.