import {OracleQueryInterface} from 'sequelize/src/dialects/oracle/query-interface.js'
方法摘要
公共方法 | ||
public |
async upsert(tableName: string, insertValues: object, updateValues: object, where: object, options: object): Promise<boolean, ?number> Upsert |
继承摘要
从类 QueryInterface 继承 | ||
public |
向表中添加新列 |
|
public |
async addConstraint(tableName: string, options: object): Promise 向表中添加约束 |
|
public |
async addIndex(tableName: string | object, attributes: Array, options: object, rawTablename: string): Promise 向列中添加索引 |
|
public |
从表中删除多条记录 |
|
public |
向表中插入多条记录 |
|
public |
async bulkUpdate(tableName: string, values: object, identifier: object, options: object, attributes: object): Promise 更新表的多个记录 |
|
public |
async changeColumn(tableName: string, attributeName: string, dataTypeOrOptions: object, options: object): * 更改列定义 |
|
public |
async createDatabase(database: string, options: object): Promise 创建数据库 |
|
public |
async createFunction(functionName: string, params: Array, returnType: string, language: string, body: string, optionsArray: Array, options: object): Promise 创建 SQL 函数 |
|
public |
async createSchema(schema: string, options: object): Promise 创建模式 |
|
public |
使用给定的属性集创建表 |
|
public |
async describeTable(tableName: string, options: object): Promise<object> 描述表结构 |
|
public |
async dropAllSchemas(options: object): Promise 删除所有模式 |
|
public |
async dropAllTables(options: object): Promise 从数据库中删除所有表 |
|
public |
async dropDatabase(database: string, options: object): Promise 删除数据库 |
|
public |
async dropFunction(functionName: string, params: Array, options: object): Promise 删除 SQL 函数 |
|
public |
async dropSchema(schema: string, options: object): Promise 删除模式 |
|
public |
从数据库中删除表 |
|
public |
async getForeignKeyReferencesForTable(tableName: string, options: object): * 获取表的外部键引用详细信息 |
|
public |
async getForeignKeysForTables(tableNames: string[], options: object): Promise 返回请求表的全部外键约束 |
|
public |
quoteIdentifier(identifier: string, force: boolean): string 以 "." 分隔标识符列表,并为每个部分添加引用 |
|
public |
quoteIdentifiers(identifiers: string): string 以 "." 分隔标识符列表,并为每个部分添加引用。 |
|
public |
异步 removeColumn(tableName: 字符串, attributeName: 字符串, options: 对象): * 从表中删除一列 |
|
public |
异步 removeConstraint(tableName: 字符串, constraintName: 字符串, options: 对象): * 从表中删除一个约束 |
|
public |
从表中删除已存在的索引 |
|
public |
重命名一列 |
|
public |
重命名一个SQL函数 |
|
public |
异步 renameTable(before: 字符串, after: 字符串, options: 对象): Promise 重命名一个表 |
|
public |
异步 showAllSchemas(options: 对象): Promise<数组> 显示所有模式 |
|
public |
异步 tableExists(tableName: TableName, options: QueryOptions): Promise<布尔值> 返回一个Promise,如果表存在于数据库中,则解析为true,否则解析为false。 |
|
public |
异步 upsert(tableName: 字符串, insertValues: 对象, updateValues: 对象, where: 对象, options: 对象): Promise<布尔值, ?数字> Upsert |