drizzle-orm-sqlite
Advanced tools
Comparing version 0.12.0-beta.15 to 0.12.0-beta.16
import { SQL } from 'drizzle-orm/sql'; | ||
import { AnySQLiteColumn } from './columns'; | ||
interface IndexConfig { | ||
/** | ||
* If true, the index will be created as `create unique index` instead of `create index`. | ||
*/ | ||
export interface IndexConfig { | ||
name: string; | ||
columns: IndexColumn[]; | ||
unique: boolean; | ||
/** | ||
* Condition for partial index. | ||
*/ | ||
where: SQL | undefined; | ||
@@ -23,2 +19,5 @@ } | ||
constructor(name: string, columns: IndexColumn[], unique: boolean); | ||
/** | ||
* Condition for partial index. | ||
*/ | ||
where(condition: SQL): this; | ||
@@ -38,2 +37,1 @@ } | ||
export declare function uniqueIndex(name: string): IndexBuilderOn; | ||
export {}; |
@@ -17,2 +17,4 @@ "use strict"; | ||
this.config = { | ||
name, | ||
columns, | ||
unique, | ||
@@ -22,2 +24,5 @@ where: undefined, | ||
} | ||
/** | ||
* Condition for partial index. | ||
*/ | ||
where(condition) { | ||
@@ -24,0 +29,0 @@ this.config.where = condition; |
{ | ||
"name": "drizzle-orm-sqlite", | ||
"version": "0.12.0-beta.15", | ||
"version": "0.12.0-beta.16", | ||
"description": "Drizzle ORM package for SQLite database", | ||
@@ -60,5 +60,5 @@ "main": "index.js", | ||
"publish:beta": "npm publish package.tgz --tag beta", | ||
"release:beta": "pnpm build && pnpm version prerelease && pnpm run pack && pnpm publish:beta", | ||
"release:beta": "pnpm build && pnpm run pack && pnpm publish:beta", | ||
"build:int": "pnpm build && pnpm run pack" | ||
} | ||
} |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
536
215977
131
3073