Outerbase SDK
  • Outerbase SDK
  • Get Started
    • Overview
    • Playground
  • Introspection
    • Overview
    • Universal data language
    • Connect a data source
    • Generate models
      • Limit table scope
    • Remote queries
  • Query Builder
    • Overview
    • Select
      • Single table
      • Multiple tables
      • Where clauses
      • Join tables
      • Limit & Offset
      • Order By
    • Insert
    • Update
    • Delete
    • Returning
    • Operators
    • .toString()
    • .asClass()
    • .query()
    • .queryRaw()
  • Data Sources
    • Overview
    • Outerbase
    • Cloudflare D1
    • Neon
Powered by GitBook
On this page
  • Create an Outerbase account
  • Add a new Base
  • Fetch your API token
  1. Introspection

Connect a data source

PreviousUniversal data languageNextGenerate models

Last updated 11 months ago

Introspecting your database requires access to your database. The safest way to connect to your database and analyze the tables, column constraints, foreign keys and more is by attaching your database to Outerbase.

Outerbase is a security-first company with SOC2 Type II and HIPAA certifications. Database credentials are securely encrypted and safely stored. For more information .

Create an Outerbase account

Visit our to create an account.

Add a new Base

Once you are logged into an your account, by default you will be inside one of your workspaces. Whichever workspace you want to add your database, or Base, to make sure you switch to it first.

Now you're ready to on how to create a new Base.

Fetch your API token

To utilize Outerbase features outside of the platform user interface you will need your Base's API key. This key can be revoked at any time and re-generated, and is directly link solely to this particular database.

To find it, follow the steps below:

  1. Navigate to the desired base.

  2. Navigate to Base Settings on the bottom-left side of your screen.

  3. Under the API Key section, click 'Generate API Key'.

  4. Copy your API key.

Now you're ready to start using the Outerbase connection type provided by the SDK in your application.

const connection = new OuterbaseConnection(
    'YOUR_API_KEY'
)
visit our security page
platform website
follow our documentation