To migrate to WoWSQL, move four things separately: your database (with pg_dump and pg_restore or psql against the WoWSQL connection string, or over HTTPS with the WoWSQL CLI), your auth users (they sign in again because there's no documented password-hash import), your files (a short copy script), and your app code (switch to @wowsql/sdk). If you're coming from a Postgres platform like Supabase, Neon, Heroku, AWS RDS, Railway or Render, the database step is a standard dump and restore. If you're coming from Firebase, Appwrite or PocketBase, you export the data first and then load it into tables you design. This hub links to a step-by-step guide for each source and gives you the commands we checked on 30 November 2026.
We're the WoWSQL team. Every WoWSQL command on this page was checked against the CLI's own --help output (version 1.7.0) and the public docs, and the Postgres commands were tested on a local PostgreSQL 17 server. We don't have your project, so nothing here was run against a live WoWSQL project. Try every step on a scratch project first.
Key facts (checked 30 November 2026)
- Direct database access: the dashboard's Connect menu gives you a direct connection string,
postgresql://USER:[YOUR-PASSWORD]@db.your-project-slug.wowsqlconnect.com:5432/postgres(dashboard docs).pg_dump,pg_restoreandpsqlwork against it like any Postgres server.- CLI: the WoWSQL CLI is a Python package. Install it with
pip install wowsql-cli(1.7.0 on PyPI, Python 3.8 or later). It is not an npm package. Its restore and backup commands arewowsql db restore --file,wowsql backup createandwowsql backup restore.- No one-click importer from Supabase, Firebase or anyone else is documented, and there's no documented import of users or password hashes.
- New projects start with the Data API off. REST calls return
403 DATA_API_DISABLEDuntil you enable it and expose your tables (Compute docs).- SDK:
@wowsql/sdk3.10.0 is CommonJS. Userequire('@wowsql/sdk')or a named import (import { WowSQLClient } from '@wowsql/sdk').import WowSQLClient from '@wowsql/sdk'fails in Node's ESM mode.- Regions: Mumbai (
ap-south-1), US East (us-east-1) and Frankfurt (eu-central-1) (regions API). There's no UK region.- Plans (pricing): Free $0 (256 MB database, 512 MB files, 10,000 MAU, read-only over a limit, no platform backups), Pro $25/month, Scale $99/month (daily backups kept 7 days on Pro and Scale).
Pick your migration guide
| Coming from | Database path | Auth users | Files | Guide |
|---|---|---|---|---|
| Supabase | pg_dump the public schema, then pg_restore/psql, or wowsql db restore |
Sign in again; re-map user_id |
Copy script (supabase-js to WowSQLStorage) |
Supabase to WoWSQL with the CLI |
| Firebase / Firestore | Export documents with the Admin SDK, then load CSV into tables | firebase auth:export for the list; users sign in again |
gcloud storage cp, then upload script |
Firebase to WoWSQL |
| Neon, Heroku Postgres, AWS RDS, Railway, Render | pg_dump --format=custom then pg_restore |
Usually your own users table: comes across with the data |
Usually none; files in your own object store copy over with the upload script | Postgres to WoWSQL with pg_dump |
| Appwrite | Export documents through Appwrite's server SDK, then load CSV | Sign in again | Download with the server SDK, then upload script | This page, below |
| PocketBase | Copy the SQLite file, convert it (for example with pgloader), or export through the API | Sign in again | Copy pb_data/storage, then upload script |
This page, below |
Whatever the source, use the migration checklist and runbook for the downtime plan, rollback and verification queries.
The five steps every migration shares
1. Create the project in the dashboard, then set up the CLI
Create the project at app.wowsql.com/signup and pick the region closest to your users. Use the dashboard for this step: wowsql projects create has no region option in CLI 1.7.0. The CLI generates the database password and prints it once, whereas the dashboard lets you type or generate one. Either way, save it. If you lose it, reset it under Project Settings → Database password (troubleshooting).
Then install and point the CLI at the project:
pip install wowsql-cli # 1.7.0 at the time of writing
wowsql --version
wowsql login # prompts for your WoWSQL email and password
wowsql projects list
wowsql projects set-default your-project-slug
wowsql status
Use projects set-default (or pass --project your-project-slug to each command). In CLI 1.7.0, wowsql link link --project … and wowsql init --project … write .wowsql/config.yaml in your folder, but the other commands read the default project from ~/.wowsql/config.yaml, not from that file.
2. Take a backup of both sides
# WoWSQL side: a local SQL file you can restore from
wowsql backup create --name before-migration --output ./backups/wowsql-before.sql
# Source side (any Postgres): a full custom-format dump
pg_dump "$SOURCE_DB_URL" --format=custom --file=./backups/source-full.dump
wowsql backup create saves the file on your machine, and that matters on Free, where WoWSQL keeps no platform backups (backups policy).
3. Move the data
From Postgres sources, restore over the direct connection string:
pg_dump "$SOURCE_DB_URL" --format=custom --no-owner --no-privileges --file=app.dump
pg_restore --no-owner --no-privileges --single-transaction --exit-on-error \
--dbname="$WOWSQL_DB_URL" app.dump
If you can't reach port 5432 from your network, the CLI sends a plain SQL file over HTTPS instead:
pg_dump "$SOURCE_DB_URL" --schema=public --no-owner --no-privileges --column-inserts --file=public.sql
wowsql db restore --file public.sql
Use --column-inserts for the CLI route. The default pg_dump output uses COPY … FROM stdin and psql meta-commands (\restrict), which are psql features, not SQL. The CLI reads the whole file into memory and sends it in one request, so keep this route for small databases. We couldn't run wowsql db restore against a live project for this guide. The Supabase guide covers the clean-up edits the file needs.
4. Turn on the Data API, then check RLS
Because new projects start with the Data API off, enable it and expose the tables your app calls, or every REST call returns 403 DATA_API_DISABLED. Then check that each table has Row Level Security on and the policies you expect:
select c.relname as table_without_rls
from pg_class c
join pg_namespace n on n.oid = c.relnamespace
where n.nspname = 'public' and c.relkind = 'r' and not c.relrowsecurity;
WoWSQL policies use auth.uid(), and the API roles are anon, authenticated and service_role, the same names Supabase uses. More in What is Row Level Security?.
5. Switch the app code
// ES modules: use named imports. The default import fails in Node ESM.
import { WowSQLClient, ProjectAuthClient } from '@wowsql/sdk'
// CommonJS: const { WowSQLClient, ProjectAuthClient } = require('@wowsql/sdk')
const db = new WowSQLClient({ projectUrl: 'your-project-slug', apiKey: process.env.WOWSQL_ANON_KEY })
const auth = new ProjectAuthClient({ projectUrl: 'your-project-slug', apiKey: process.env.WOWSQL_ANON_KEY })
const open = await db.table('todos').select('id', 'title').eq('done', false).order('created_at', 'desc').limit(20).get()
console.log(open.data)
In our mock-server test, SDK 3.10.0 turned that query into GET /rest/v1/todos?select=id,title&done=eq.false&order=created_at.desc&limit=20, which is PostgREST syntax. Generate types for the new schema with wowsql gen typescript --output ./src/types/database.ts.
What carries over, and what doesn't
| Item | Carries over? | How |
|---|---|---|
| Tables, views, functions, triggers, data | Yes | pg_dump/pg_restore, or export and load for non-Postgres sources |
RLS policies written with auth.uid() |
Usually | They come across in the dump; test with two real users |
Foreign keys to the old platform's user table (auth.users) |
No | Drop them during restore; user IDs change |
| Users and password hashes | No (not documented) | Users sign in with the same OAuth provider, or reset their password. Ask support@wowsql.com if keeping passwords is a hard requirement |
| Sessions and tokens | No | Every user signs in once on WoWSQL |
| Files | Yes, with a script | WowSQLStorage.upload / uploadFromPath, or wowsql storage upload for the default bucket |
| Presigned or signed URLs | No | WoWSQL's storage docs say presigned URLs aren't available; use a public bucket or a server route |
| Server functions | Rewrite | WoWSQL Compute runs one-file Node.js or Python handlers (docs) |
| Realtime | Re-enable | Enable each table with POST /realtime/v1/enable (docs) |
| GraphQL calls | Rewrite | Use the REST API or the SDK |
| Extensions | Check first | Enabling extensions needs Pro or Scale (docs) |
Appwrite to WoWSQL
Appwrite Cloud doesn't give you a Postgres connection, so the move is export and load:
- Data. For each collection, page through documents with Appwrite's server SDK (an API key with read scopes) and write them to CSV, one row per document with its
$idand the JSON attributes. The loading steps are the same as in the Firebase guide:\copythe CSV into a staging table with ajsonbcolumn, theninsert … selectinto typed tables. Keep the Appwrite document ID as atextprimary key so relationships still resolve. - Permissions. Appwrite document and collection permissions become RLS policies. Write one policy per rule, keyed on
auth.uid(). - Users. Export the user list with the server SDK for your mapping table. WoWSQL documents no hash import, so users sign in again with OAuth or reset their password.
- Files. Download each bucket's files with the server SDK, then upload them with the
upload-folder.mjsscript from the Firebase guide. - Functions. Rewrite them as WoWSQL Compute handlers in Node.js or Python.
Comparing first? See Appwrite alternative on Postgres.
PocketBase to WoWSQL
PocketBase stores everything in SQLite under pb_data/:
- Data. Copy
pb_data/data.dbwhile PocketBase is stopped. A SQLite-to-Postgres converter such as pgloader can load it into a scratch Postgres database. Thenpg_dumpthe tables you want and restore them into WoWSQL as in step 3. You can also export each collection through the PocketBase API to CSV and usewowsql db import-csv ./posts.csv --table posts. We haven't tested pgloader against a PocketBase file for this guide. - Types. PocketBase record IDs are short text strings, so keep them as
textprimary keys. JSON fields becomejsonb. - Users. Users live in an auth collection with bcrypt password hashes, and there's no documented way to import those into WoWSQL. Users reset their password or use OAuth.
- Files. Uploaded files are under
pb_data/storage/<collection>/<record>/. Upload that folder with the script from the Firebase guide, then rewrite stored file names to WoWSQL paths. - API rules become RLS policies.
See PocketBase vs WoWSQL if you're still deciding.
Which CLI commands help during a migration
All of these are in wowsql --help for CLI 1.7.0:
| Task | Command |
|---|---|
| Log in | wowsql login (or wowsql login --api-key …) |
| Choose the project | wowsql projects set-default your-project-slug |
| Show connection details for psql | wowsql db connect (prints host, port, database, user and a psql command) |
| Local backup file | wowsql backup create --name before-migration --output ./backups/v1.sql |
| Restore a SQL file | wowsql db restore --file public.sql or wowsql backup restore ./backup.sql |
| Export the whole database | wowsql db dump --output dump.sql (--schema-only, --data-only, --tables) |
| Load a CSV | wowsql db import-csv ./users.csv --table users (--create-table, --on-conflict ignore|replace) |
| Export one table | wowsql db export todos --output todos.csv --format csv |
| Run SQL | wowsql db query "select count(*) from todos" or wowsql db query --file verify.sql |
| Schema migrations | wowsql migration new add_index, wowsql migration up --dry-run, wowsql migration up, wowsql migration down --count 1 |
| Types | wowsql gen typescript --output ./src/types/database.ts |
| Function secrets | wowsql secrets set STRIPE_SECRET "…" |
Files (default bucket) |
wowsql storage upload ./logo.png --path brand/logo.png |
FAQ
How do I migrate my app to WoWSQL?
Create a project in the dashboard, back up both sides, move the database with pg_dump and pg_restore (or the WoWSQL CLI's wowsql db restore --file), enable the Data API, ask users to sign in again, copy files with a script, and switch your code to @wowsql/sdk. Follow the guide for your source platform.
Does WoWSQL have a one-click import from Supabase or Firebase?
No. No importer is documented. For Postgres sources you use standard pg_dump and pg_restore against the WoWSQL connection string. For Firebase, Appwrite and PocketBase you export the data and load it into tables you design.
Can I keep my users' passwords when I move to WoWSQL?
Not with a documented tool. WoWSQL's docs don't describe importing users or password hashes, so users sign in with the same OAuth provider or reset their password, and their user IDs change. Email support@wowsql.com if keeping passwords is a hard requirement.
Is the WoWSQL CLI on npm?
No. The CLI is a Python package: pip install wowsql-cli (version 1.7.0 on PyPI). The npm package @wowsql/sdk is the JavaScript SDK, not the CLI.
Why does my REST API return 403 after the import?
New WoWSQL projects start with the Data API off. Enable it for the project and expose the tables you need, otherwise calls return 403 DATA_API_DISABLED. If you then see permission errors, check RLS policies and table grants for the anon and authenticated roles.
Which WoWSQL region should I migrate to?
Pick the one nearest your users: Mumbai (ap-south-1), US East (us-east-1) or Frankfurt (eu-central-1). There's no UK region. UK and EU teams usually pick Frankfurt.
Related guides
- Supabase to WoWSQL with the CLI
- Firebase to WoWSQL: data and auth users
- Neon, Heroku, RDS, Railway or Render to WoWSQL
- Migration checklist and runbook
- Firestore to Postgres data modelling
- WoWSQL vs Supabase
- Choosing a database region
Create a free WoWSQL project and run a trial migration into it before you touch production. · Pricing · CLI install docs