Whatever the engine, equate behaves the same way: it connects for each lookup and
disconnects straight after, sends only
SELECT statements naming the exact columns you
mapped, always with a row limit and a 5-second timeout, and passes every value (the
booking reference, the supplier name you searched for) as a bound parameter, never as
part of the SQL text.
What equate needs
1
Connection
The database type, then host, port (leave it blank for the engine’s default),
database name, encryption, and credentials for a database user. Credentials are
encrypted at rest and never shown again once saved.
2
Where the bookings live
The schema and table (or view) to read from.
3
Which columns matter
The column holding the booking reference (required), and optionally the
supplier and total columns for stronger matching.
4
Test with a real lookup
The booking-data wizard runs a live lookup before saving —
a wrong column or connection fails here, not silently at match time.
Expose a clean view
Rather than pointing equate at raw application tables, create a dedicated read-only view that presents one row per booking with friendly columns:`reference` on MySQL, [reference] on SQL Server); their read-only logins
are under MySQL and MariaDB and
SQL Server and Azure SQL.
equate only ever reads — a SELECT-only user on a single view is all it needs.
Index the reference column
Lookups are by reference, so make sure the underlying column is indexed — at volume, every invoice triggers at least one lookup:upper(public_ref) if your references vary in case).
Encryption
The connector’s Encryption setting means the same thing on every engine:
Use verify certificate when the server presents a certificate from a public
authority (most managed services do); Require suits a server with a self-signed
certificate. Avoid None outside a private network.
Under Additional security you can paste a certificate authority (PEM) for
verify certificate when the server’s certificate isn’t from a public authority: a
private CA, or the Amazon RDS / Azure bundle. It is stored encrypted like the password.
Security
Rotating the password: create the new password, enter it on the connector and
save, then retire the old one on the server. See
connector security.
MySQL and MariaDB
Pick MySQL / MariaDB as the database type. The default port is3306.
- Schema = database. MySQL has no separate schema level, so the table picker lists
database.tablefor every database the login can read. You can connect to one database and read a view in another, as long as the login hasSELECTon it. - Read-only. Each lookup runs inside
START TRANSACTION READ ONLY, so the server itself refuses any write. - Timeouts. equate sets
MAX_EXECUTION_TIME(MySQL) ormax_statement_time(MariaDB) to 5 seconds for its session, and gives up on its side after 5 seconds too. - Case. Supplier searches compare lower-cased values, so they match whatever your column’s collation.
% with the addresses you allow, if
you restrict by host):
REQUIRE SSL makes the server refuse an unencrypted connection from this login, which
pairs with the connector’s Require setting. On Amazon RDS / Aurora, Azure
Database for MySQL and Google Cloud SQL, allow equate’s connection in the
instance’s security group, firewall rules or authorised networks.
A MySQL login is tied to the host it connects from. If the test says the host “is not
allowed to connect”, the login’s host part doesn’t cover equate’s connection — create
it for
'%' (or the addresses we give you) rather than localhost.Microsoft SQL Server and Azure SQL
Pick Microsoft SQL Server / Azure SQL as the database type. The default port is1433.
- Host. For Azure SQL Database it’s
<server>.database.windows.net; for a Managed Instance, its public endpoint is<instance>.public.<dns-zone>.database.windows.neton port3342. For an on-premises named instance, enterserver\INSTANCEand leave the port blank — equate finds the instance’s port through the SQL Server Browser service (UDP1434, which must be reachable). - Schema. Tables default to the
dboschema; the table picker shows the others with their schema in front (sales.bookings). - Sign-in. Use a SQL login (user name and password). Windows and Microsoft Entra ID sign-in aren’t supported, so on-premises servers need SQL Server authentication (“mixed mode”) enabled.
- Read-only. SQL Server has no read-only transaction for an ordinary login, so the
login itself is what keeps equate read-only: give it read access and nothing more.
equate only ever sends
SELECTstatements, each withTOP/FETCHrow limits and a 5-second timeout.
master):
Azure SQL firewall
Azure SQL refuses every connection from an address it hasn’t been told to allow. If the test says the client IP address “is not allowed to access the server”:- In the Azure portal, open the SQL server (not the database) → Security → Networking.
- Under Public access, choose Selected networks.
- Add a firewall rule for each of equate’s addresses — ask us for the current list.
- Save, wait a minute for the rule to apply, and test again.
1433 (and UDP 1434 for a named instance)
in its firewall to equate’s addresses only.
Use a replica, not production
If you run a read replica or reporting mirror, point equate at that instead of the primary. Match-time lookups are light, but isolation is cheap insurance:- replication lag of seconds is harmless — bookings exist long before invoices arrive;
- your primary’s performance is untouchable by anything equate does;
- network allow-listing is simpler on a replica that already serves reporting tools.
Connecting to a Supabase database
If your bookings live in Supabase, the connection details you pick matter — the default “direct” connection won’t work from equate, and the symptom is a connection that times out or “can’t reach host” even though the credentials are correct. Supabase exposes three connection options (Dashboard → Connect, or Project Settings → Database):Why the direct connection fails
Supabase’s direct connection is IPv6-only on the free and pro tiers — an IPv4 address is a paid add-on. equate connects from a cloud environment that reaches your database over IPv4, so a direct (db.<ref>.supabase.co:5432) connection has nothing
to route to and the test fails. You have two ways round it:
- Use the session pooler (recommended) — it’s IPv4-native and needs no add-on.
- Buy the Supabase IPv4 add-on if you specifically need the direct connection.
Recommended: the session pooler
The session pooler behaves like an ordinary Postgres connection (one connection per session), so it supports everything equate does — including the read-only transaction it opens for every lookup. Map the pooler’s details into the connector form like this:The username must carry the
.<project-ref> suffix when connecting through either
pooler (e.g. equate_reader.abcdefghijklmnop). A bare equate_reader works on the
direct connection but is rejected by the pooler. The exact strings are shown under
Connect in your Supabase dashboard — copy the host and the username from there.equate_reader user above apply unchanged
— create them as normal, then connect to that role through the pooler.
The transaction pooler (port 6543) also works over IPv4, but it recycles a server
connection per transaction and doesn’t keep session state, so prefer the session
pooler unless you have a specific reason to use it.
Prefer an API in front of your data?
If a database connection isn’t possible — managed platform, security policy, or the bookings live behind a service — use the booking API connector instead: same live-lookup behaviour, over REST.Next: connect it as booking data
Add the connector under Booking Data, map the columns, and run the live test.