/ Connections / Sources
Docs/Connections/Sources

Sources

A source is the database NoSQLSync reads from. Give it a read-only user — NoSQLSync never writes to a source except after a dual-write cutover.

Supported sources

SourceModesChange feed
MongoDB (Atlas, self-hosted)Live syncChange streams
Amazon DynamoDBLive syncDynamoDB Streams
Google Cloud FirestoreLive syncSnapshot listeners
Azure Cosmos DB (NoSQL API)Live syncChange feed
Apache CassandraOne-time—
CouchbaseOne-time—
PostgreSQL, Supabase, Neon, RDS / AuroraOne-time—
MySQL, PlanetScale, MariaDBOne-time—
SQL Server / Azure SQLOne-time—

Credentials are entered either as a connection string or as a JSON object, depending on the database. The exact fields are listed below.

MongoDB

Paste a standard connection string. A user with the built-in read role is enough.

mongodb+srv://reader:[email protected]/app
!
Live sync needs a replica set

Change streams only exist on replica sets and sharded clusters. Every Atlas cluster qualifies; a standalone mongod can only run one-time migrations.

DynamoDB

Credentials JSON
{
  "region": "us-east-1",
  "accessKeyId": "AKIA…",
  "secretAccessKey": "…"
}

The IAM user needs read access to the tables (dynamodb:Scan, dynamodb:DescribeTable, dynamodb:ListTables) and, for live sync, to their streams.

!
Enable streams with both images

For live sync, turn on DynamoDB Streams with the view type NEW_AND_OLD_IMAGES. Other view types are rejected.

Firestore

Credentials JSON
{
  "projectId": "my-project",
  "credentials": { "type": "service_account", "project_id": "my-project", … }
}

Create a service account in Firebase console → Project settings → Service accounts. The Cloud Datastore Viewer role is enough.

i

Firestore listeners don't offer a resumable position. If a live sync restarts, it continues from the current state of the collection rather than replaying changes made while it was down.

Cosmos DB

Credentials JSON
{
  "endpoint": "https://my-account.documents.azure.com:443/",
  "key": "…read-only key…"
}

Use the NoSQL (Core) API endpoint and a read-only key. For Cosmos DB's MongoDB API, connect it as a MongoDB source instead.

i

The Cosmos DB change feed doesn't report deletes, so documents deleted at the source during live sync remain in the target.

Cassandra

Credentials JSON
{
  "contactPoints": ["10.0.0.5", "10.0.0.6"],
  "localDataCenter": "dc1",
  "username": "reader",
  "password": "…"
}

Use a role with SELECT on the keyspaces you want to copy. username and password are optional if authentication is off.

Couchbase

Credentials JSON
{
  "connectionString": "couchbases://cb.example.com",
  "username": "reader",
  "password": "…"
}

SQL databases

PostgreSQL, MySQL and MariaDB accept either a connection string or individual fields:

postgres://reader:[email protected]:5432/app
mysql://reader:[email protected]:3306/app
Or as JSON
{ "host": "db.example.com", "port": 5432, "database": "app", "username": "reader", "password": "…" }

For PostgreSQL, each schema appears as a database in the wizard. For Neon and Supabase, use the direct (non-pooled) connection string.

SQL Server

Credentials JSON
{
  "server": "sql.example.com",
  "port": 1433,
  "database": "app",
  "user": "reader",
  "password": "…",
  "encrypt": true,
  "trustServerCertificate": false
}

SQL Server 2016+ and Azure SQL are supported. The db_datareader role is enough.

Testing a connection

The Test button (or POST /connections/test) opens a real connection, lists databases and measures latency. For MongoDB it also checks whether the deployment supports change streams, so you know up front if live sync will work.

  • Connection refused or timed out → check firewall rules; see Security & networking.
  • Authentication failed → check the user, password and auth database (?authSource=admin for MongoDB).