Skip to content
Novus Examples
sql276 B

Postgres SQL Dump

A Postgres-flavour SQL dump with a CREATE TABLE and INSERT statements — for testing SQL importers and migrations.

Preview — first 12 linessql
-- Postgres-flavour dump
CREATE TABLE users (
  id SERIAL PRIMARY KEY,
  name TEXT NOT NULL,
  email TEXT UNIQUE,
  created_at TIMESTAMPTZ DEFAULT now()
);

INSERT INTO users (name, email) VALUES
  ('Ada Lovelace', 'ada@example.com'),
  ('Grace Hopper', 'grace@example.com');

Specifications

What is a .sql file?

SQL files contain plain-text Structured Query Language statements, typically schema definitions, data inserts, or queries used to build or populate a database. Dialect details vary between engines such as PostgreSQL, MySQL, and SQLite. A dump file often recreates an entire database when executed.

How to use this file

Use an example SQL file to test statement parsing, database restore and migration tooling, and dialect-compatibility of import pipelines.

Generated by generation/data_formats.py. Free for any use, no attribution required — license.