Spec-Zone.ru › Sequelize 5
summary
public

C Model

A Model represents a table in the database.

public

C QueryInterface

The interface that Sequelize uses to talk to all databases

public

C Sequelize

This is the main class, the entry point to sequelize.

public

C Transaction

The transaction object is used to identify a running transaction.

public

V DataTypes: *

A convenience class holding commonly used data types.

public

V Deferrable: *

A collection of properties related to deferrable constraints.

public

V IndexHints: *

An enum of index hints to be used in mysql for querying with index hints

public

V Op: {"eq": *, "ne": *, "gte": *, "gt": *, "lte": *, "lt": *, "not": *, "is": *, "in": *, "notIn": *, "like": *, "notLike": *, "iLike": *, "notILike": *, "startsWith": *, "endsWith": *, "substring": *, "regexp": *, "notRegexp": *, "iRegexp": *, "notIRegexp": *, "between": *, "notBetween": *, "overlap": *, "contains": *, "contained": *, "adjacent": *, "strictLeft": *, "strictRight": *, "noExtendRight": *, "noExtendLeft": *, "and": *, "or": *, "any": *, "all": *, "values": *, "col": *, "placeholder": *, "join": *}

Operator symbols to be used when querying data

public

V QueryTypes: *

An enum of query types used by sequelize.query

public

V TableHints: *

An enum of table hints to be used in mssql for querying with table hints

associations

summary
public

C Association

Creating associations in sequelize is done by calling one of the belongsTo / hasOne / hasMany / belongsToMany functions on a model (the source), and providing another model as the first argument to the function (the target).

public

C BelongsToMany

Many-to-many association with a join table.

public

C BelongsTo

One-to-one association

public

C HasMany

One-to-many association

public

C HasOne

One-to-one association

dialects/sqlite

summary
public

F describeTable(qi: QueryInterface, tableName: string, options: Object): Promise<Object>

Describe a table structure

errors

summary
public

C AssociationError

Thrown when an association is improperly constructed (see message for details)

public

C BaseError

Sequelize provides a host of custom error classes, to allow you to do easier debugging.

public

C BulkRecordError(error: Error, record: Object)

Thrown when bulk operation fails, it represent per record level error.

public

C ConnectionError

A base class for all connection related errors.

public

C DatabaseError

A base class for all database related errors.

public

C EagerLoadingError

Thrown when an include statement is improperly constructed (see message for details)

public

C EmptyResultError

Thrown when a record was not found, Usually used with rejectOnEmpty mode (see message for details)

public

C InstanceError

Thrown when a some problem occurred with Instance methods (see message for details)

public

C OptimisticLockError

Thrown when attempting to update a stale model instance

public

C QueryError

Thrown when a query is passed invalid options (see message for details)

public

C SequelizeScopeError

Scope Error.

public

C ValidationError(message: string, errors: Array)

Validation Error.

public

C ValidationErrorItem

Validation Error Item Instances of this class are included in the ValidationError.errors property.

errors/connection

summary
public

C AccessDeniedError

Thrown when a connection to a database is refused due to insufficient privileges

public

C ConnectionAcquireTimeoutError

Thrown when connection is not acquired due to timeout

public

C ConnectionRefusedError

Thrown when a connection to a database is refused

public

C ConnectionTimedOutError

Thrown when a connection to a database times out

public

C HostNotFoundError

Thrown when a connection to a database has a hostname that was not found

public

C HostNotReachableError

Thrown when a connection to a database has a hostname that was not reachable

public

C InvalidConnectionError

Thrown when a connection to a database has invalid values for any of the connection parameters

errors/database

summary
public

C ExclusionConstraintError

Thrown when an exclusion constraint is violated in the database

public

C ForeignKeyConstraintError

Thrown when a foreign key constraint is violated in the database

public

C TimeoutError

Thrown when a database query times out because of a deadlock

public

C UnknownConstraintError

Thrown when constraint name is not found in the database

errors/validation

summary
public

C UniqueConstraintError

Thrown when a unique constraint is violated in the database

Directories
associations
sqlite
errors
connection
database
validation

Copyright © 2014–present Sequelize contributors
Licensed under the MIT License.
https://sequelize.org/v5/identifiers

Spec-Zone.ru

Настройки Оффлайн Что нового Помощь О нас
Spec-Zone .ru
спецификации, руководства, описания, API