I’m working on building a new website. I have an old Wix site that I’m going to upgrade to an EditorX site. Currently the EditorX site is not set to premium, nor is it connected to a domain. I will do this once the new site is ready to go live.
That being said, I’m trying to run SQL code on the new site. For example:
import { sql } from ‘@velo/wix-data-sql-backend’;
results = sql(‘SELECT * FROM myTable’);
I have the velo sql functionality installed but when I look at the console, I get the error, “e.sql is not a function” and ‘results’ is not defined.
I’ve tried running the code in the onReady function and inside the export function dataset1_ready() {} function (making sure the dataset is loaded before running the SQL code).
Am I doing something wrong or does this have to do with the fact that the test site is not connected to a domain yet?
Thank you for any help.