Initial commit

This commit is contained in:
Ammaar Reshi
2025-01-04 14:06:53 +00:00
parent 7082408604
commit d6025af146
23760 changed files with 3299690 additions and 0 deletions

41
node_modules/drizzle-orm/sqlite-core/indexes.d.ts generated vendored Normal file
View File

@ -0,0 +1,41 @@
import { entityKind } from "../entity.js";
import type { SQL } from "../sql/sql.js";
import type { SQLiteColumn } from "./columns/index.js";
import type { SQLiteTable } from "./table.js";
export interface IndexConfig {
name: string;
columns: IndexColumn[];
unique: boolean;
where: SQL | undefined;
}
export type IndexColumn = SQLiteColumn | SQL;
export declare class IndexBuilderOn {
private name;
private unique;
static readonly [entityKind]: string;
constructor(name: string, unique: boolean);
on(...columns: [IndexColumn, ...IndexColumn[]]): IndexBuilder;
}
export declare class IndexBuilder {
static readonly [entityKind]: string;
_: {
brand: 'SQLiteIndexBuilder';
};
constructor(name: string, columns: IndexColumn[], unique: boolean);
/**
* Condition for partial index.
*/
where(condition: SQL): this;
}
export declare class Index {
static readonly [entityKind]: string;
_: {
brand: 'SQLiteIndex';
};
readonly config: IndexConfig & {
table: SQLiteTable;
};
constructor(config: IndexConfig, table: SQLiteTable);
}
export declare function index(name: string): IndexBuilderOn;
export declare function uniqueIndex(name: string): IndexBuilderOn;