Skip to content

Connect a warehouse

BInbox reads your data where it is kept, so nothing has to be moved or copied first. Each guide below takes you from nothing to a connection that passes BInbox’s own test. You can follow a guide yourself in the warehouse’s console, or an assistant working for you can run its commands from the command line.

Where your data is Guide Signs in with
PostgreSQL PostgreSQL A user name and password
Google BigQuery BigQuery A service account key file
Snowflake Snowflake A key pair
Databricks SQL Databricks SQL A service principal’s OAuth secret
Amazon Redshift Amazon Redshift A user name and password
Azure SQL Database Azure SQL Database A Microsoft Entra app registration
Azure Synapse Azure Synapse A Microsoft Entra app registration
Microsoft Fabric Microsoft Fabric A Microsoft Entra app registration
Files in Amazon S3 Amazon S3 An access key
Files in Google Cloud Storage Google Cloud Storage A service account key file
Files in Azure Blob Storage Azure Blob Storage A Microsoft Entra app registration
Economic series from FRED FRED Your own FRED API key

The three file stores read CSV, TSV and text files and Excel workbooks (.xlsx) from one folder, and each can keep a scheduled copy of a file.

FRED is a source of public series rather than a warehouse. An author names the series by their ids, and BInbox keeps a copy of them on a schedule. The series belong to their owners, and your account uses them under their terms.

The three Microsoft warehouses and Blob Storage share one app registration, so its setup has a page of its own: Set up a Microsoft Entra app registration.

Every guide follows the same five steps.

  1. Make a login that can only read. The guide gives the commands and the console steps, and lists the fewest permissions BInbox needs. BInbox never writes to your warehouse, so grant nothing beyond that list.
  2. Collect the values. The guide has a table of the fields BInbox asks for, each named as the form names it.
  3. Add the connection in BInbox. An owner or admin of the account opens the Data tab, chooses Connect, then New connection. Authors and viewers cannot add a connection. Connections describes the screen.
  4. Read the test. Test connection signs in and checks each permission. Its report says Granted or Refused for each one, and gives your warehouse’s own words for a refusal. The setup is finished when the report passes, so run the test even if every step seemed to work. The last section of each guide lists the permissions the report checks.
  5. Set up a dataset from the connection. An author picks a table or view and checks how BInbox reads it in the Data view, as Pick a table describes. A dataset is one table or one view. If your figures need columns from several tables, first make a view in the warehouse that joins them, with one row for each thing the report counts. Prepare your data says how.

Paste a credential only into BInbox’s Connect form, never into a chat, an email or a ticket. The form sends it once over an encrypted connection, and BInbox stores it encrypted on its server. After that no one can view it again, including you, and BInbox uses it only to read data.

To rotate a credential, make a new one in the warehouse, choose Change on the connection in BInbox and paste the whole new credential. When the test passes, remove the old credential in the warehouse.

The warehouse must be reachable from the internet

Section titled “The warehouse must be reachable from the internet”

BInbox connects over the internet, so the warehouse needs a public address and must offer TLS 1.2 or higher. BInbox refuses a host on a private or link-local address, and it refuses an unencrypted connection. BInbox does not yet connect from a fixed address, so it cannot reach a warehouse that admits only a list of addresses.

Some warehouses offer a second way to sign in, called a managed identity: the warehouse trusts BInbox’s own identity, and no secret is kept. Today BInbox’s server presents one identity for every account, so a warehouse that trusts that identity trusts every BInbox account. Until BInbox gives each account its own token, use the first way on each page. The managed identity sections still describe what the form asks, so that an administrator can plan ahead.

A table’s blank cells give the same figures as the same blanks in an uploaded file. A total whose rows are all blank for a period is shown as not available, not as 0, and so is a figure per day worked out from it. A stock whose last count in a period is blank shows the last count that is not blank. A start or end date that the warehouse cannot read as a date counts as a row with no dates, so the other figures still show.

This section is for an AI assistant doing the setup for a client.

Each guide is also served as plain Markdown at its own address with .md added, such as https://docs.binbox.ai/connect/postgresql.md. https://docs.binbox.ai/llms.txt lists every page in one line each, and https://docs.binbox.ai/llms-full.txt holds the full text of all of them.

Run the commands in the client’s warehouse with the client’s own sign-in. Ask the client before you create a login or grant a role. When the credential exists, hand it to the client to paste into BInbox, and do not place it anywhere else.