Autocomplete table/column names locally

Hi, I’d like to use the SQL Autocomplete parser as described here: https://gethue.com/blog/2020-02-27-using-sql-parser-module/

However instead of getting table/column names from a remote backend service, I’d like to get it from a local JavaScript structure in my webclient.

I haven’t found a way to hook my own suggestion provider to the autocomplete parser to list tables/columns.

Is there a way to do it?

Thanks