Do not use me directly. Use sql.random

Hierarchy (View Summary)

Constructors

Properties

"[SQL_IDENTIFIER]": string
args: readonly unknown[]

Accessors

  • get asJavaScript(): () => unknown

    This getter is designed to be used as an attribute's default value. This is useful when the SQL version must be bypassed due to a limitation of the dialect that Sequelize cannot detect, such as a missing extension.

    const User = sequelize.define('User', {
    uuid: {
    type: DataTypes.UUID,
    defaultValue: sql.uuidV4.asJavaScript,
    },
    });

    Returns () => unknown

Methods