Using the Xano Database
Last updated
Was this helpful?
Last updated
Was this helpful?
Click in the top right corner.
Choose Import Data to import data from a CSV file, or Enter Data Manually to start with an empty table.
In the panel that opens, give your table a and a
When naming your table, it's considered best practice to use camelCase for multiple words, and to not use plurals in the table name. For example, a table of dog breeds would be named dogBreed
The description is just for you to make notes on what this table will contain, notable data constraints, or any other information you'd like to store.
Let's start with the top control bar.
Just below the control bar, you'll see your database records.
Use your mouse or arrow keys to navigate between records and individual cells.
To modify data, just select the cell and make your desired changes. They will be saved automatically.
After you've selected your desired field type, you will be presented with a number of options. You can review each one of them and what they mean below.
Name
The name of the field you are creating
Description
Add additional details here
Data Structure
Single - Each record will only store one value in this field. This is the more common selection. List - Each record can hold multiple values in this field. For example, if this was a table of authors, we might have a field that can store multiple books for each author.
Allow Nullable Values
A null
value is similar to an empty value in that it represents "nothing is here", but it's still an actual value written to the record. Useful if you need to specifically check whether or not that field has data stored.
Format
For some field types, you can specify a format. This does not change the actual data being stored and is only used to enable easier viewing and editing for you inside of the table view.
Default Value
When adding new records, you can automatically populate a default value
Note
The settings listed below only impact your API endpoints that utilize the feature. This means that it is possible to make changes that break these rules via the database table view.
Required
Determines whether or not this field is required when adding a record
Sensitive Data
Hide the contents of this field from certain areas, such as request history
Column Visibility
Public - The field will be available as an input Private - This field will not appear in inputs Internal - Hide this field from API inputs and responses
Custom Rules & Filters
See below.
For each field, you can apply various rules and filters to ensure that the data is stored in the format that you expect.
min
Enforces a minimum number of required characters
max
Enforces a maximum number of required characters
startsWith
Enforces a prefix
endsWith
Enforces a suffix
prevent
Blacklists phrases
lower
Stores the value in all lowercase
upper
Stores the value in all uppercase
alphaOk
Whitelist certain alphanumeric characters
digitOk
Whitelist certain numbers
ok
Whitelist certain characters
pattern
Enforce a
Right-click on the header of a field to access field-related settings and make adjustments to the options already detailed above, as well as some additional controls.
Please note that renaming a field should be handled with care, as it may impact any function steps that reference that field.
Xano will attempt to convert the data in the column to the new data type, but because of potential variations between data types, and the specific data being converted, this may not always be successful. It is always recommended to create a new column instead.
Deleting a column is irreversible. Proceed with caution.
Authentication
Determines whether or not this table is used for user authentication.
Security
Change the table .
Versions
Xano maintains a version history of your table schema. You can roll back to a previous version of your schema if you've made changes that you want to undo. Note: This does not change the data in your table, only the fields. If you need to restore a backup of your table data, see this document.
Triggers
Access your .
Auto-complete
Access your settings.
Clear all records
Deletes all records in the table. You can also choose to reset the primary ID back to 1 on tables that use a sequential ID.
Clone table
Cloning copies the table schema. Cloning does not copy existing data.
Export data
Export your table data using the current view as a CSV
Import data
Import records from a CSV 📖 Learn More
f
Table name, ID, description, and tags
Go back to your list of database tables.
Refresh the list of records
Change the
Search for specific records
Filter your records by certain conditions, such as "all records with an ID greater than 100"
Sort your database records
Hide database fields from view
Cut, Copy, Paste, Undo, and Redo
Show
Show
Review available keyboard shortcuts for the database view
Select one or more records by checking these boxes
Open a card view of the selected record
Add a new field
Click the to add a new field, and choose the type of field you want to add from the panel that opens.
Rename this field
You can click when viewing a database table to open Referenced By and view any database operations that utilize that column first to understand where changes need to be made. In the screenshot below, we know we want to update the name column, so we can use Referenced By to find where it's used beforehand.
Access field settings (the options detailed earlier in this document)
Make a copy of this column
Insert a new column directly after the selected column
Change the data type of the column
Delete the column
Click to access table settings after creation, including both settings detailed earlier in this document, as well as some additional options.