Back to Sequelize

References

static/v4/identifiers.html

latest6.8 KB
Original Source

References

Class Summary

| Static Public Class Summary | | public |

AccessDeniedError

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

| | | public |

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 |

AssociationError

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

| | | public |

BaseError

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

| | | public |

BelongsTo

One-to-one association

| | | public |

BelongsToMany

Many-to-many association with a join table.

| | | public |

BulkRecordError(error: Error, record: Object)

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

| | | public |

ConnectionError

A base class for all connection related errors.

| | | public |

ConnectionRefusedError

Thrown when a connection to a database is refused

| | | public |

ConnectionTimedOutError

Thrown when a connection to a database times out

| | | public |

DatabaseError

A base class for all database related errors.

| | | public |

EagerLoadingError

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

| | | public |

EmptyResultError

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

| | | public |

ExclusionConstraintError

Thrown when an exclusion constraint is violated in the database

| | | public |

ForeignKeyConstraintError

Thrown when a foreign key constraint is violated in the database

| | | public |

HasMany

One-to-many association

| | | public |

HasOne

One-to-one association

| | | public |

HostNotFoundError

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

| | | public |

HostNotReachableError

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

| | | public |

InstanceError

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

| | | public |

InvalidConnectionError

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

| | | public |

Model

A Model represents a table in the database.

| | | public |

OptimisticLockError

Thrown when attempting to update a stale model instance

| | | public |

QueryError

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

| | | public |

QueryInterface

The interface that Sequelize uses to talk to all databases

| | | public |

Sequelize

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

| | | public |

SequelizeScopeError

Scope Error.

| | | public |

TimeoutError

Thrown when a database query times out because of a deadlock

| | | public |

Transaction

The transaction object is used to identify a running transaction.

| | | public |

UniqueConstraintError

Thrown when a unique constraint is violated in the database

| | | public |

UnknownConstraintError

Thrown when constraint name is not found in the database

| | | public |

ValidationError(message: string, errors: Array)

Validation Error.

| | | public |

ValidationErrorItem(message: String, type: String, path: String, value: String, inst: Object, validatorKey: Object, fnName: String, fnArgs: String)

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

| |

Function Summary

| Static Public Function Summary | | public |

isImmutable(value: *, validatorArgs: *, field: *, modelInstance: *): *

Instance based validators

| |

Variable Summary

| Static Public Variable Summary | | public |

DataTypes: *

A convenience class holding commonly used data types.

| | | public |

Deferrable: *

A collection of properties related to deferrable constraints.

| | | public |

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

Operator symbols to be used when querying data

| | | public |

QueryTypes: *

An enum of query types used by sequelize.query

| | | public |

TableHints: *

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

| |