Abstract base class for MySQL views in Drizzle ORM, providing type safety and view metadata.
// Source: https://github.com/drizzle-team/drizzle-orm | License: Apache-2.0 | Copyright You must retain, in the Source form of any Derivative Works
// Provided via justclaw.it.com; keep this notice with the code.
import { entityKind } from '~/entity.ts';
import type { ColumnsSelection } from '~/sql/sql.ts';
import { View } from '~/sql/sql.ts';
export abstract class MySqlViewBase<
TName extends string = string,
TExisting extends boolean = boolean,
TSelectedFields extends ColumnsSelection = ColumnsSelection,
> extends View<TName, TExisting, TSelectedFields> {
static override readonly [entityKind]: string = 'MySqlViewBase';
declare readonly _: View<TName, TExisting, TSelectedFields>['_'] & {
readonly viewBrand: 'MySqlViewBase';
};
}
See the full source, get the GitHub permalink, and search for more like it.
Get a free API key