tedious
Version:
A TDS driver, for connecting to MS SQLServer databases.
21 lines (20 loc) • 685 B
TypeScript
import { type Metadata } from '../metadata-parser';
import Parser, { type TokenReader } from './stream-parser';
import { ColMetadataToken } from './token';
export interface ColumnMetadata extends Metadata {
/**
* The column's name。
*/
colName: string;
tableName?: string | string[] | undefined;
}
/**
* Reads a `COLMETADATA` token column by column, so that tokens describing many
* columns are not parsed again from the start whenever they span chunks.
*/
export declare class ColMetadataTokenReader implements TokenReader {
columnCount: number | undefined;
columns: ColumnMetadata[];
constructor();
read(parser: Parser): ColMetadataToken;
}