Integrations · Your own database
Your database
Lets the concierge look things up directly in your own database (orders, accounts, bookings, subscriptions) through a read-only user limited to the tables you choose, for businesses whose data is not in a platform we connect to.
Specified, built on request. This is what the Your database connection does, written from Your database’s own developer documentation. We build and test it with the first customer who asks. Ask for it.
What we ask of you
Whoever looks after your database creates a user for us that can only read the tables you choose, and sends us its connection details. We never ask for an administrator login, and the user cannot change anything.
- Choose what the concierge may read. The safest way is to create views that show only the columns it needs (for example an orders view with order number, status, dates and the customer's email, and no payment details).
- Create a user for Usher that can log in and read only those tables or views. PostgreSQL: CREATE ROLE usher_read LOGIN PASSWORD '…'; then GRANT USAGE ON SCHEMA your_schema TO usher_read; and GRANT SELECT ON your_view TO usher_read; for each one. MySQL: CREATE USER 'usher_read'@'our address' IDENTIFIED BY '…'; then GRANT SELECT ON yourdb.your_view TO 'usher_read'@'our address';
- PostgreSQL only: make the user read-only even if a grant is later added by mistake, and stop long queries: ALTER ROLE usher_read SET default_transaction_read_only = on; ALTER ROLE usher_read SET statement_timeout = '5s';
- Allow connections from Usher's fixed address in your firewall, and require an encrypted (SSL/TLS) connection. If you have a read replica, point us at that instead of your main database.
- Send us the host, port, database name and user through the secure form we email you. Never send the password by email or chat.
We never ask for a password or an owner’s login.
The permissions it needs
| Permission | What it is for | Access |
|---|---|---|
SELECT on the tables or views you choose | Read the records the concierge needs to answer a customer, and nothing else. | Read only |
USAGE on the schema that holds them (PostgreSQL) | Lets the user see the chosen tables; grants no access to anything else in the schema. | Read only |
Read access to the database's own catalogue (information_schema) | Read table and column names and types, so we can map what each table is for. Every database user has this by default. | Read only |
What it can do
- Map what your tables are forRe-run on a schedule, and when a query fails because a column changed. Changes to the map are shown to you to approve.Reads
- Look up a customer's orders, bookings or accountOnly for a customer your site has signed in and vouched for (a signed identity from your site). An email a visitor types is never enough to see their records.Reads
- Answer questions about stock, availability or pricesReads
Anything that changes something is off until you switch it on, and stays inside the limits you set.
What it cannot do
- Change, add or delete anything: the user is read-only, and on PostgreSQL every session is read-only as well.
- Run queries written by the AI: it can only call the queries you approved, with values Usher fills in.
- Read tables or columns you have not granted.
- Show one customer another customer's records.
Limits and requirements
- Every query has a time limit (5 seconds suggested) and returns at most a few rows.
- PostgreSQL and MySQL (including MariaDB and the managed versions on AWS, Google Cloud and Azure) first. Others on request.
- The database must accept encrypted connections from Usher's fixed address; we do not connect over an unencrypted link.
- Looking up a person's records needs your site to sign the customer's identity, so the concierge knows who it is talking to.
Your customers’ data
Whatever is in the tables and columns you grant: typically customers' names, email addresses, order and account details. Payment card numbers and passwords should never be included; use views that leave them out.
Your database is a trademark of its owner. Usher is not affiliated with or endorsed by Your database. Details are taken from its public developer documentation and may change; we confirm them when we build the connection.