drizzle-team/drizzle-orm · error · Error

The drizzle-seed package currently supports only PostgreSQL,

Error message

The drizzle-seed package currently supports only PostgreSQL, MySQL, and SQLite databases. Please ensure your database is one of these supported types

What it means

Error "The drizzle-seed package currently supports only PostgreSQL, MySQL, and SQLite databases. Please ensure your database is one of these supported types" thrown in drizzle-team/drizzle-orm.

Source

Thrown at drizzle-seed/src/index.ts:393

			| Relations
			| any;
	},
	options: { count?: number; seed?: number; version?: string } = {},
	refinements?: RefinementsType,
) => {
	let version: number | undefined;
	if (options?.version !== undefined) {
		version = Number(options?.version);
	}

	if (is(db, PgDatabase<any, any>)) {
		await seedPostgres(db, schema, { ...options, version }, refinements);
	} else if (is(db, MySqlDatabase<any, any>)) {
		await seedMySql(db, schema, { ...options, version }, refinements);
	} else if (is(db, BaseSQLiteDatabase<any, any>)) {
		await seedSqlite(db, schema, { ...options, version }, refinements);
	} else {
		throw new Error(
			'The drizzle-seed package currently supports only PostgreSQL, MySQL, and SQLite databases. Please ensure your database is one of these supported types',
		);
	}

	return;
};

/**
 * deletes all data from specified tables
 *
 * @param db - database you would like to reset.
 * @param schema - object that contains all your database tables you would like to delete data from.
 *
 * `If db is a PgDatabase object`, we will execute sql query and delete data from your tables the following way:
 * ```sql
 * truncate tableName1, tableName2, ... cascade;
 * ```
 *

View on GitHub (pinned to b7862528fd)

Solutions

  1. Point drizzle-seed at a PostgreSQL, MySQL, or SQLite database; other dialects are not supported by the seeding package.

When it happens

Trigger: Running drizzle-seed against a database/dialect other than PostgreSQL, MySQL, or SQLite.

Common situations: Seeding SingleStore, Gel, or other dialects; passing an unsupported db instance to seed().


AI-assisted analysis of drizzle-team/drizzle-orm@b7862528fd (2026-08-03). Data as JSON: /data/errors/88424dfe0113e858.json. Report an issue: GitHub.