Comparing version 0.6.50 to 0.6.51
@@ -122,3 +122,4 @@ | ||
sql: SQL; | ||
alter():AlterQuery<T> | ||
alter():AlterQuery<T>; | ||
indexes(): IndexQuery; | ||
} | ||
@@ -134,2 +135,16 @@ export interface AlterQuery<T> extends Executable<void> { | ||
} | ||
export interface IndexQuery { | ||
create(): IndexCreationQuery; | ||
create(indexName: string): IndexCreationQuery; | ||
drop(indexName: string): Executable<void>; | ||
drop(...columns: Column<any>[]): Executable<void> | ||
} | ||
export interface IndexCreationQuery extends Executable<void> { | ||
unique(): IndexCreationQuery; | ||
using(name: string): IndexCreationQuery; | ||
on(...columns: (Column<any>|OrderByValueNode)[]): IndexCreationQuery; | ||
withParser(parserName: string): IndexCreationQuery; | ||
fulltext(): IndexCreationQuery; | ||
spatial(): IndexCreationQuery; | ||
} | ||
@@ -136,0 +151,0 @@ export interface SQL { |
{ | ||
"name": "anydb-sql", | ||
"version": "0.6.50", | ||
"version": "0.6.51", | ||
"description": "Minimal ORM for mysql, postgresql and sqlite with complete arbitrary SQL query support (based on brianc's query builder sql)", | ||
@@ -5,0 +5,0 @@ "main": "anydb-sql.js", |
135637
1457