drizzle-team/drizzle-orm · error · Error
Streaming is not supported by the TiDB Cloud Serverless driv
Error message
Streaming is not supported by the TiDB Cloud Serverless driver
What it means
Error "Streaming is not supported by the TiDB Cloud Serverless driver" thrown in drizzle-team/drizzle-orm.
Source
Thrown at drizzle-orm/src/tidb-serverless/session.ts:100
return returningResponse;
}
return res;
}
const rows = await this.queryWithCache(queryString, params, async () => {
return await client.execute(queryString, params, queryConfig) as unknown[][];
});
if (customResultMapper) {
return customResultMapper(rows);
}
return rows.map((row) => mapResultRow<T['execute']>(fields!, row, joinsNotNullableMap));
}
override iterator(_placeholderValues?: Record<string, unknown>): AsyncGenerator<T['iterator']> {
throw new Error('Streaming is not supported by the TiDB Cloud Serverless driver');
}
}
export interface TiDBServerlessSessionOptions {
logger?: Logger;
cache?: Cache;
}
export class TiDBServerlessSession<
TFullSchema extends Record<string, unknown>,
TSchema extends TablesRelationalConfig,
> extends MySqlSession<TiDBServerlessQueryResultHKT, TiDBServerlessPreparedQueryHKT, TFullSchema, TSchema> {
static override readonly [entityKind]: string = 'TiDBServerlessSession';
private logger: Logger;
private client: Tx | Connection;
private cache: Cache;
View on GitHub (pinned to b7862528fd)
Solutions
- Use a driver that supports streaming for TiDB, or fetch results without streaming (regular query execution).
When it happens
Trigger: Attempting to stream results over the TiDB Cloud Serverless (HTTP) driver, which cannot stream rows.
Common situations: Using query streaming APIs with the tidb-serverless driver; switch to a TCP driver (mysql2) for streaming.
AI-assisted analysis of drizzle-team/drizzle-orm@b7862528fd (2026-08-03).
Data as JSON: /data/errors/f78921a11d9599fb.json.
Report an issue: GitHub.