指南
参考
源代码
C
Model
C
Sequelize
C
Transaction
F
format
F
formatNamedParameters
F
safeStringifyJson
V
DataTypes
V
Deferrable
V
IndexHints
V
QueryTypes
V
TableHints
associations
C
Association
C
BelongsToMany
C
BelongsTo
C
HasMany
C
HasOne
dialects/abstract
C
QueryInterface
dialects/db2
C
Db2QueryInterface
dialects/mssql
C
AsyncQueueError
C
MSSqlQueryInterface
dialects/mysql
C
MySQLQueryInterface
dialects/oracle
C
OracleQueryInterface
dialects/postgres
C
PostgresQueryInterface
dialects/snowflake
C
SnowflakeQueryInterface
dialects/sqlite
C
SQLiteQueryInterface
errors
C
AggregateError
C
AssociationError
C
BaseError
C
BulkRecordError
C
ConnectionError
C
DatabaseError
C
EagerLoadingError
C
EmptyResultError
C
InstanceError
C
OptimisticLockError
C
QueryError
C
SequelizeScopeError
C
ValidationError
C
ValidationErrorItem
V
ValidationErrorItemOrigin
V
ValidationErrorItemType
errors/connection
C
AccessDeniedError
C
ConnectionAcquireTimeoutError
C
ConnectionRefusedError
C
ConnectionTimedOutError
C
HostNotFoundError
C
HostNotReachableError
C
InvalidConnectionError
errors/database
C
ExclusionConstraintError
C
ForeignKeyConstraintError
C
TimeoutError
C
UnknownConstraintError
errors/validation
C
UniqueConstraintError
utils
F
injectReplacements
datatypes
C
ARRAY
C
VIRTUAL
C
UUIDV4
C
UUIDV1
C
UUID
C
TSVECTOR
C
TINYINT
C
TIME
C
TEXT
C
STRING
C
SMALLINT
C
REAL
C
RANGE
C
NUMBER
C
NOW
C
MEDIUMINT
C
MACADDR
C
JSONTYPE
C
JSONB
C
INTEGER
C
INET
C
HSTORE
C
GEOMETRY
C
GEOGRAPHY
C
FLOAT
C
ENUM
C
DOUBLE
C
DECIMAL
C
DATEONLY
C
DATE
C
CITEXT
C
CIDR
C
CHAR
C
BOOLEAN
C
BLOB
C
BIGINT
public
class
|
source
DECIMAL
扩展
src/data-types.js~ABSTRACT
→
NUMBER
→ DECIMAL
十进制类型,可变精度,根据用户指定的长度
构造函数概述
公共构造函数
public
constructor
(precision:
string
|
number
, scale:
string
|
number
)
公共构造函数
public
constructor
(precision:
string
|
number
, scale:
string
|
number
)
源代码
覆盖
NUMBER#constructor
参数
名称
类型
属性
描述
precision
string
|
number
可选
定义精度
scale
string
|
number
可选
定义小数位数