mirror of
https://github.com/typeorm/typeorm.git
synced 2025-12-08 21:26:23 +00:00
docs: fix typos in the js documentation (#11754)
This commit is contained in:
parent
08a9397491
commit
6381c8d519
@ -3,7 +3,7 @@ import { RelationMetadataArgs } from "../../metadata-args/RelationMetadataArgs"
|
||||
import { RelationOptions } from "../options/RelationOptions"
|
||||
|
||||
/**
|
||||
* Marks a entity property as a children of the tree.
|
||||
* Marks an entity property as a children of the tree.
|
||||
* "Tree children" will contain all children (bind) of this entity.
|
||||
*/
|
||||
export function TreeChildren(options?: {
|
||||
|
||||
@ -4,7 +4,7 @@ import { OnDeleteType } from "../../metadata/types/OnDeleteType"
|
||||
import { RelationOptions } from "../options/RelationOptions"
|
||||
|
||||
/**
|
||||
* Marks a entity property as a parent of the tree.
|
||||
* Marks an entity property as a parent of the tree.
|
||||
* "Tree parent" indicates who owns (is a parent) of this entity in tree structure.
|
||||
*/
|
||||
export function TreeParent(options?: {
|
||||
|
||||
@ -1608,7 +1608,7 @@ export class AuroraMysqlQueryRunner
|
||||
}
|
||||
|
||||
/**
|
||||
* Drops an unique constraint.
|
||||
* Drops a unique constraint.
|
||||
*/
|
||||
async dropUniqueConstraint(
|
||||
tableOrName: Table | string,
|
||||
@ -1620,7 +1620,7 @@ export class AuroraMysqlQueryRunner
|
||||
}
|
||||
|
||||
/**
|
||||
* Drops an unique constraints.
|
||||
* Drops a unique constraints.
|
||||
*/
|
||||
async dropUniqueConstraints(
|
||||
tableOrName: Table | string,
|
||||
|
||||
@ -533,15 +533,15 @@ export class MongoQueryRunner implements QueryRunner {
|
||||
}
|
||||
|
||||
/**
|
||||
* For MongoDB database we don't create connection, because its single connection already created by a driver.
|
||||
* For MongoDB database we don't create a connection because its single connection already created by a driver.
|
||||
*/
|
||||
async connect(): Promise<any> {}
|
||||
|
||||
/**
|
||||
* For MongoDB database we don't release connection, because its single connection.
|
||||
* For MongoDB database we don't release the connection because it is a single connection.
|
||||
*/
|
||||
async release(): Promise<void> {
|
||||
// releasing connection are not supported by mongodb driver, so simply don't do anything here
|
||||
// the mongodb driver does not support releasing connection, so simply don't do anything here
|
||||
}
|
||||
|
||||
/**
|
||||
@ -983,7 +983,7 @@ export class MongoQueryRunner implements QueryRunner {
|
||||
}
|
||||
|
||||
/**
|
||||
* Drops an unique constraint.
|
||||
* Drops a unique constraint.
|
||||
*/
|
||||
async dropUniqueConstraint(
|
||||
tableOrName: Table | string,
|
||||
@ -995,7 +995,7 @@ export class MongoQueryRunner implements QueryRunner {
|
||||
}
|
||||
|
||||
/**
|
||||
* Drops an unique constraints.
|
||||
* Drops unique constraints.
|
||||
*/
|
||||
async dropUniqueConstraints(
|
||||
tableOrName: Table | string,
|
||||
|
||||
@ -2755,7 +2755,7 @@ export declare interface CreateIndexesOptions
|
||||
extends Omit<CommandOperationOptions, "writeConcern"> {
|
||||
/** Creates the index in the background, yielding whenever possible. */
|
||||
background?: boolean
|
||||
/** Creates an unique index. */
|
||||
/** Creates a unique index. */
|
||||
unique?: boolean
|
||||
/** Override the autogenerated index name (useful if the resulting name is larger than 128 bytes) */
|
||||
name?: string
|
||||
|
||||
@ -1994,7 +1994,7 @@ export class MysqlQueryRunner extends BaseQueryRunner implements QueryRunner {
|
||||
}
|
||||
|
||||
/**
|
||||
* Drops an unique constraint.
|
||||
* Drops a unique constraint.
|
||||
*/
|
||||
async dropUniqueConstraint(
|
||||
tableOrName: Table | string,
|
||||
@ -2006,7 +2006,7 @@ export class MysqlQueryRunner extends BaseQueryRunner implements QueryRunner {
|
||||
}
|
||||
|
||||
/**
|
||||
* Drops an unique constraints.
|
||||
* Drops a unique constraints.
|
||||
*/
|
||||
async dropUniqueConstraints(
|
||||
tableOrName: Table | string,
|
||||
|
||||
@ -1901,7 +1901,7 @@ export class OracleQueryRunner extends BaseQueryRunner implements QueryRunner {
|
||||
}
|
||||
|
||||
/**
|
||||
* Drops an unique constraint.
|
||||
* Drops a unique constraint.
|
||||
*/
|
||||
async dropUniqueConstraint(
|
||||
tableOrName: Table | string,
|
||||
@ -1925,7 +1925,7 @@ export class OracleQueryRunner extends BaseQueryRunner implements QueryRunner {
|
||||
}
|
||||
|
||||
/**
|
||||
* Creates an unique constraints.
|
||||
* Creates a unique constraints.
|
||||
*/
|
||||
async dropUniqueConstraints(
|
||||
tableOrName: Table | string,
|
||||
|
||||
@ -2145,7 +2145,7 @@ export class SapQueryRunner extends BaseQueryRunner implements QueryRunner {
|
||||
}
|
||||
|
||||
/**
|
||||
* Drops an unique constraints.
|
||||
* Drops unique constraints.
|
||||
*/
|
||||
async dropUniqueConstraints(
|
||||
tableOrName: Table | string,
|
||||
|
||||
@ -1145,7 +1145,7 @@ export class SpannerQueryRunner extends BaseQueryRunner implements QueryRunner {
|
||||
}
|
||||
|
||||
/**
|
||||
* Creates new check constraint.
|
||||
* Creates a new check constraint.
|
||||
*/
|
||||
async createCheckConstraint(
|
||||
tableOrName: Table | string,
|
||||
|
||||
@ -861,7 +861,7 @@ export abstract class AbstractSqliteQueryRunner
|
||||
}
|
||||
|
||||
/**
|
||||
* Drops an unique constraint.
|
||||
* Drops a unique constraint.
|
||||
*/
|
||||
async dropUniqueConstraint(
|
||||
tableOrName: Table | string,
|
||||
@ -882,7 +882,7 @@ export abstract class AbstractSqliteQueryRunner
|
||||
}
|
||||
|
||||
/**
|
||||
* Creates an unique constraints.
|
||||
* Creates a unique constraints.
|
||||
*/
|
||||
async dropUniqueConstraints(
|
||||
tableOrName: Table | string,
|
||||
|
||||
@ -2311,7 +2311,7 @@ export class SqlServerQueryRunner
|
||||
}
|
||||
|
||||
/**
|
||||
* Drops an unique constraints.
|
||||
* Drops unique constraints.
|
||||
*/
|
||||
async dropUniqueConstraints(
|
||||
tableOrName: Table | string,
|
||||
|
||||
@ -385,7 +385,7 @@ export interface QueryRunner {
|
||||
): Promise<void>
|
||||
|
||||
/**
|
||||
* Drops an unique constraint.
|
||||
* Drops a unique constraint.
|
||||
*/
|
||||
dropUniqueConstraint(
|
||||
table: Table | string,
|
||||
|
||||
@ -20,7 +20,7 @@ describe("entity-schema > uniques", () => {
|
||||
beforeEach(() => reloadTestingDatabases(connections))
|
||||
after(() => closeTestingConnections(connections))
|
||||
|
||||
it("should create an unique constraint with 2 columns", () =>
|
||||
it("should create a unique constraint with 2 columns", () =>
|
||||
Promise.all(
|
||||
connections.map(async (connection) => {
|
||||
const queryRunner = connection.createQueryRunner()
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user