We will sometimes want to interact with our database and use its results in a specific programming language.
That's where DBAPIs come in.
A DB-API provides a standard for one programming language (like python) to talk to a relational database server.
Is a low-level library for writing SQL statements that connect to a database.
Also known as database adapters.
Different DBAPIs exist for every server framework or language + database system.
Database adapters define a standard for using a database (with SQL) and using the results of database queries as input data in the given language.
Examples across languages and server frameworks:
For Ruby (e.g. for Sinatra, Ruby on Rails): pg.
For NodeJS: node-Postgres.
For Python (e.g. for Flask, Django): pyscopg2.