Manage Schemas / Browse Data
Manage instance schemas/tables and browse data in tabular format with the following instructions:
Navigate to the HarperDB Studio Organizations page.
Click the appropriate organization that the instance belongs to.
Select your desired instance.
Click browse in the instance control bar.
Once on the instance browse page you can view data, manage schemas and tables, add new data, and more.
Manage Schemas and Tables
Create a Schema
Click the plus icon at the top right of the schemas section.
Enter the schema name.
Click the green check mark.
Delete a Schema
Deleting a schema is permanent and irreversible. Deleting a schema removes all tables and data within it.
Click the minus icon at the top right of the schemas section.
Identify the appropriate schema to delete and click the red minus sign in the same row.
Click the red check mark to confirm deletion.
Create a Table
Select the desired schema from the schemas section.
Click the plus icon at the top right of the tables section.
Enter the table name.
Enter the primary key.
The primary key is also often referred to as the hash attribute in the studio, and it defines the unique identifier for each row in your table.
Click the green check mark.
Delete a Table
Deleting a table is permanent and irreversible. Deleting a table removes all data within it.
Select the desired schema from the schemas section.
Click the minus icon at the top right of the tables section.
Identify the appropriate table to delete and click the red minus sign in the same row.
Click the red check mark to confirm deletion.
Manage Table Data
The following section assumes you have selected the appropriate table from the schema/table browser.
Filter Table Data
Click the magnifying glass icon at the top right of the table browser.
This expands the search filters.
The results will be filtered appropriately.
Load CSV Data
Click the data icon at the top right of the table browser. You will be directed to the CSV upload page where you can choose to import a CSV by URL or upload a CSV file.
To import a CSV by URL:
Enter the URL in the CSV file URL textbox.
Click Import From URL.
The CSV will load, and you will be redirected back to browse table data.
To upload a CSV file:
Click Click or Drag to select a .csv file (or drag your CSV file from your file browser).
Navigate to your desired CSV file and select it.
Click Insert X Records, where X is the number of records in your CSV.
The CSV will load, and you will be redirected back to browse table data.
Add a Record
Click the plus icon at the top right of the table browser.
The Studio will pre-populate existing table attributes in JSON format.
The primary key is not included, but you can add it in and set it to your desired value. Auto-maintained fields are not included and cannot be manually set. You may enter a JSON array to insert multiple records in a single transaction.
Enter values to be added to the record.
You may add new attributes to the JSON; they will be reflexively added to the table.
Click the Add New button.
Edit a Record
Click the record/row you would like to edit.
Modify the desired values.
You may add new attributes to the JSON; they will be reflexively added to the table.
Click the save icon.
Delete a Record
Deleting a record is permanent and irreversible. If transaction logging is turned on, the delete transaction will be recorded as well as the data that was deleted.
Click the record/row you would like to delete.
Click the delete icon.
Confirm deletion by clicking the check icon.
Browse Table Data
The following section assumes you have selected the appropriate table from the schema/table browser.
Browse Table Data
The first page of table data is automatically loaded on table selection. Paging controls are at the bottom of the table. Here you can:
Page left and right using the arrows.
Type in the desired page.
Change the page size (the amount of records displayed in the table).
Refresh Table Data
Click the refresh icon at the top right of the table browser.
Automatically Refresh Table Data
Toggle the auto switch at the top right of the table browser. The table data will now automatically refresh every 15 seconds. Filters and pages will remain set for refreshed data.
Last updated