• Preparing search index...
  • The search index is not available
Documentation
  • Documentation
  • @sequelize/utils
  • common
  • arrayFromAsync

Function arrayFromAsync

  • arrayFromAsync<T>(asyncIterable): Promise<T[]>
  • Implements https://github.com/tc39/proposal-array-from-async This function works like Array.from, but accepts async iterators instead of sync iterators.

    Type Parameters

    • T

    Parameters

    • asyncIterable: AsyncIterable<T>

      An async iterable

    Returns Promise<T[]>

    A promise that resolves to an array that includes all items yielded by the async iterable.

    • Defined in common/array-from-async.ts:8

Settings

Member Visibility

Theme

Documentation
  • @sequelize
    • core
      • decorators-legacy
        • <internal>
          • OptionalParameterizedPropertyDecorator
          • AttributeDecoratorOption
          • IndexDecoratorOptions
          • NonUndefined
          • PropertyOrGetterDescriptor
          • UniqueOptions
        • HookOptions
        • InheritedAttributeOptions
        • AfterAssociate
        • AfterBulkCreate
        • AfterBulkDestroy
        • AfterBulkRestore
        • AfterBulkUpdate
        • AfterCreate
        • AfterDefinitionRefresh
        • AfterDestroy
        • AfterDestroyMany
        • AfterFind
        • AfterRestore
        • AfterSave
        • AfterSync
        • AfterUpdate
        • AfterUpsert
        • AfterValidate
        • AllowNull
        • Attribute
        • AutoIncrement
        • BeforeAssociate
        • BeforeBulkCreate
        • BeforeBulkDestroy
        • BeforeBulkRestore
        • BeforeBulkUpdate
        • BeforeCount
        • BeforeCreate
        • BeforeDefinitionRefresh
        • BeforeDestroy
        • BeforeDestroyMany
        • BeforeFind
        • BeforeFindAfterExpandIncludeAll
        • BeforeFindAfterOptions
        • BeforeRestore
        • BeforeSave
        • BeforeSync
        • BeforeUpdate
        • BeforeUpsert
        • BeforeValidate
        • BelongsTo
        • BelongsToMany
        • Column
        • ColumnName
        • Comment
        • CreatedAt
        • Default
        • DeletedAt
        • HasMany
        • HasOne
        • Index
        • ModelValidator
        • NotNull
        • PrimaryKey
        • Table
        • Unique
        • UpdatedAt
        • ValidateAttribute
        • ValidationFailed
        • Version
        • createIndexDecorator
      • index
        • cast
        • col
        • default
        • fn
        • literal
        • where
        • <internal>
          • RelationshipType
          • ARRAY
          • AbstractQueryGeneratorInternal
          • AbstractQueryGeneratorTypeScript
          • AbstractQueryInterfaceInternal
          • AbstractQueryInterfaceTypeScript
          • BIGINT
          • BLOB
          • BOOLEAN
          • BaseDecimalNumberDataType
          • BaseIntegerDataType
          • BaseNumberDataType
          • CHAR
          • CIDR
          • CITEXT
          • DATE
          • DATEONLY
          • DECIMAL
          • DEFERRED
          • DOUBLE
          • DialectAwareFn
          • ENUM
          • FLOAT
          • GEOGRAPHY
          • GEOMETRY
          • HSTORE
          • HookHandler
          • IMMEDIATE
          • INET
          • INTEGER
          • JSON
          • JSONB
          • JsonNullClass
          • MACADDR
          • MACADDR8
          • MEDIUMINT
          • MapView
          • ModelSetView
          • ModelTypeScript
          • MultiMap
          • NOW
          • PojoWhere
          • RANGE
          • REAL
          • ReplicationPool
          • SMALLINT
          • STRING
          • SequelizeTypeScript
          • SetView
          • SqlUuidV1
          • SqlUuidV4
          • TEXT
          • TIME
          • TINYINT
          • TSVECTOR
          • UUID
          • UUIDV1
          • UUIDV4
          • VIRTUAL
          • WhereSqlBuilder
          • AddColumnQueryOptions
          • AddLimitOffsetOptions
          • AttributeToSqlOptions
          • BaseGeoJson
          • Bindable
          • CommonErrorProperties
          • CreateTableQueryOptions
          • DatabaseErrorParent
          • DatabaseErrorSubclassOptions
          • EphemeralSequelizeOptions
          • EscapeOptions
          • ExclusionConstraintErrorOptions
          • Extensions
          • ForeignKeyConstraintErrorOptions
          • FormatWhereOptions
          • LegacyAddAnyHookFunction
          • LegacyAddHookFunction
          • LegacyRunHookFunction
          • MapLike
          • ModelHooks
          • NewHookable
          • NormalizedArrayOptions
          • NormalizedEnumOptions
          • NormalizedVirtualOptions
          • OptimisticLockErrorOptions
          • ParsedJsonPropertyKey
          • PersistedSequelizeOptions
          • ReadonlyMapLike
          • ReadonlySetLike
          • ReplicationPoolConfig
          • ReplicationPoolOptions
          • SequelizeCoreOptions
          • SequelizeHooks
          • SequelizeTruncateOptions
          • StaticSequelizeHooks
          • StringTypeOptions
          • SupportableDecimalNumberOptions
          • SupportableExactDecimalOptions
          • SupportableFloatOptions
          • SupportableNumericOptions
          • TimestampAttributes
          • UniqueConstraintErrorOptions
          • UniqueConstraintErrorParent
          • UnknownConstraintErrorOptions
          • UuidOptions
          • ValidationOptions
          • WithConnectionOptions
          • AbstractDialectParams
          • AcceptableTypeOf
          • AcceptedBlob
          • AcceptedDate
          • AcceptedNumber
          • AllowArray
          • AllowIterable
          • AllowLowercase
          • AllowNotOrAndRecursive
          • AllowNotOrAndWithImplicitAndArrayRecursive
          • AllowReadonlyArray
          • AnyFunction
          • ArithmeticQueryOptions
          • AsyncHookReturn
          • BindCollector
          • BlobLength
          • BulkInsertOptions
          • ConnectionType
          • Constructed
          • DataTypeUseContext
          • DialectSupports
          • DynamicSqlExpression
          • Entry
          • EnumValues
          • HookParameters
          • HstoreRecord
          • InsertOptions
          • MakeNullishOptional
          • MaybeForwardedModelStatic
          • ModelMatch
          • NonConstructorKeys
          • NonUndefinedKeys
          • NormalizeBaseAssociationOptions
          • NormalizedBelongsToManyOptions
          • NormalizedDataType
          • NormalizedThroughOptions
          • Nullish
          • NullishPropertiesOf
          • OmitConstructors
          • OnRunHook
          • OrigValidator
          • ParameterOptions
          • PartialBy
          • PartialOrUndefined
          • RawDate
          • RequiredBy
          • SelectOptions
          • SessionCallback
          • StrictRequiredBy
          • TextLength
          • TransactionCallback
          • TransactionCallback
          • TypeParser
          • UpdateOptions
          • WhereAttributeHash
          • WhereAttributeHashValue
          • WithoutForeignKeyChecksCallback
          • ConnectionOptionType
          • ConnectionType
          • OptionType
          • SUPPORTED_DIALECTS
        • DataTypes
          • ABSTRACT
          • ARRAY
          • BIGINT
          • BLOB
          • BOOLEAN
          • CHAR
          • CIDR
          • CITEXT
          • DATE
          • DATEONLY
          • DECIMAL
          • DOUBLE
          • ENUM
          • FLOAT
          • GEOGRAPHY
          • GEOMETRY
          • HSTORE
          • INET
          • INTEGER
          • JSON
          • JSONB
          • MACADDR
          • MACADDR8
          • MEDIUMINT
          • NOW
          • RANGE
          • REAL
          • SMALLINT
          • STRING
          • TEXT
          • TIME
          • TINYINT
          • TSVECTOR
          • UUID
          • UUIDV1
          • UUIDV4
          • VIRTUAL
        • Deferrable
        • GeoJsonType
        • IndexHints
        • IsolationLevel
        • Lock
        • ManualOnDelete
        • QueryTypes
        • TableHints
        • TransactionNestMode
        • TransactionType
        • ValidationErrorItemOrigin
        • ValidationErrorItemType
        • AbstractConnectionManager
        • AbstractDialect
        • AbstractQuery
        • AbstractQueryGenerator
        • AbstractQueryInterface
        • AccessDeniedError
        • AggregateError
        • Association
        • AssociationError
        • AssociationPath
        • Attribute
        • BaseError
        • BaseSqlExpression
        • BelongsToAssociation
        • BelongsToManyAssociation
        • BulkRecordError
        • Cast
        • Col
        • ConnectionAcquireTimeoutError
        • ConnectionError
        • ConnectionRefusedError
        • ConnectionTimedOutError
        • ConstraintChecking
        • DatabaseError
        • EagerLoadingError
        • EmptyResultError
        • ExclusionConstraintError
        • Fn
        • ForeignKeyConstraintError
        • HasManyAssociation
        • HasOneAssociation
        • HostNotFoundError
        • HostNotReachableError
        • Identifier
        • InstanceError
        • InvalidConnectionError
        • JsonPath
        • List
        • Literal
        • Model
        • ModelDefinition
        • ModelRepository
        • MultiAssociation
        • OptimisticLockError
        • QueryError
        • Sequelize
        • SequelizeScopeError
        • TimeoutError
        • Transaction
        • UniqueConstraintError
        • UnknownConstraintError
        • ValidationError
        • ValidationErrorItem
        • Value
        • Where
        • AbstractConnection
        • AbstractQueryFormatBindOptions
        • AbstractQueryGroupJoinDataOptions
        • AbstractQueryOptions
        • AcquireConnectionOptions
        • AddCheckConstraintQueryOptions
        • AddColumnOptions
        • AddDefaultConstraintQueryOptions
        • AddForeignKeyConstraintQueryOptions
        • AddPrimaryKeyConstraintQueryOptions
        • AddScopeOptions
        • AddUniqueConstraintQueryOptions
        • AfterAssociateEventData
        • AggregateOptions
        • ArrayOptions
        • AssociationOptions
        • AssociationScope
        • AttributeIndexOptions
        • AttributeOptions
        • AttributeReferencesOptions
        • BaseConstraintQueryOptions
        • BeforeAssociateEventData
        • BelongsToCreateAssociationMixinOptions
        • BelongsToGetAssociationMixinOptions
        • BelongsToManyAddAssociationMixinOptions
        • BelongsToManyAddAssociationsMixinOptions
        • BelongsToManyCountAssociationsMixinOptions
        • BelongsToManyCreateAssociationMixinOptions
        • BelongsToManyGetAssociationsMixinOptions
        • BelongsToManyHasAssociationMixinOptions
        • BelongsToManyHasAssociationsMixinOptions
        • BelongsToManyOptions
        • BelongsToManyRemoveAssociationMixinOptions
        • BelongsToManyRemoveAssociationsMixinOptions
        • BelongsToManySetAssociationsMixinOptions
        • BelongsToOptions
        • BelongsToSetAssociationMixinOptions
        • BindParamOptions
        • BlobOptions
        • BuildOptions
        • BulkCreateOptions
        • BulkDeleteQueryOptions
        • BulkDestroyOptions
        • CollateCharsetOptions
        • ColumnDescription
        • ColumnValidateOptions
        • CommitTransactionOptions
        • CommonDestroyOptions
        • ConstraintDescription
        • CountOptions
        • CreateDatabaseOptions
        • CreateDatabaseQueryOptions
        • CreateFunctionOptions
        • CreateOptions
        • CreateSavepointOptions
        • CreateSchemaOptions
        • CreateSchemaQueryOptions
        • CreateTableAttributeOptions
        • DatabaseDescription
        • DateOptions
        • DecimalNumberOptions
        • DefaultSetOptions
        • DeferConstraintsOptions
        • DescribeTableOptions
        • DestroyManyOptions
        • DestroyOptions
        • DropOptions
        • DropSchemaOptions
        • DropSchemaQueryOptions
        • DropTableQueryOptions
        • EnumOptions
        • FetchDatabaseVersionOptions
        • Filterable
        • FindAndCountOptions
        • FindByPkOptions
        • FindOptions
        • FindOrBuildOptions
        • FindOrCreateOptions
        • ForeignKeyOptions
        • FunctionParam
        • GeoJsonGeometryCollection
        • GeoJsonLineString
        • GeoJsonMultiLineString
        • GeoJsonMultiPoint
        • GeoJsonMultiPolygon
        • GeoJsonPoint
        • GeoJsonPolygon
        • GeometryOptions
        • GetConnectionOptions
        • GetConstraintSnippetQueryOptions
        • GroupedCountResultItem
        • HasManyAddAssociationMixinOptions
        • HasManyAddAssociationsMixinOptions
        • HasManyCountAssociationsMixinOptions
        • HasManyCreateAssociationMixinOptions
        • HasManyGetAssociationsMixinOptions
        • HasManyHasAssociationMixinOptions
        • HasManyHasAssociationsMixinOptions
        • HasManyOptions
        • HasManyRemoveAssociationMixinOptions
        • HasManyRemoveAssociationsMixinOptions
        • HasManySetAssociationsMixinOptions
        • HasOneCreateAssociationMixinOptions
        • HasOneGetAssociationMixinOptions
        • HasOneOptions
        • HasOneSetAssociationMixinOptions
        • Hookable
        • IncludeOptions
        • IncludeThroughOptions
        • IncrementDecrementOptions
        • IncrementDecrementOptionsWithBy
        • IndexDescription
        • IndexField
        • IndexFieldDescription
        • IndexHint
        • IndexHintable
        • IndexOptions
        • InitOptions
        • InstanceDestroyOptions
        • InstanceRestoreOptions
        • InstanceUpdateOptions
        • IntegerOptions
        • JoinTableAttributes
        • LegacyDialectOptions
        • ListDatabasesOptions
        • ListDatabasesQueryOptions
        • ListSchemasQueryOptions
        • ListTablesQueryOptions
        • Logging
        • ManagedTransactionOptions
        • MaxExecutionTimeHintable
        • ModelGetOptions
        • ModelNameOptions
        • ModelOptions
        • ModelScopeOptions
        • MultiAssociationOptions
        • NonNullFindByPkOptions
        • NonNullFindOptions
        • NormalizedAttributeOptions
        • NormalizedAttributeReferencesOptions
        • NormalizedReplicationOptions
        • NumberOptions
        • OpTypes
        • Paranoid
        • PoolOptions
        • Poolable
        • Projectable
        • QiArithmeticOptions
        • QiBulkDeleteOptions
        • QiDropAllSchemasOptions
        • QiDropAllTablesOptions
        • QiDropTableOptions
        • QiInsertOptions
        • QiListSchemasOptions
        • QiListTablesOptions
        • QiOptionsWithReplacements
        • QiSelectOptions
        • QiTruncateTableOptions
        • QiUpdateOptions
        • QiUpsertOptions
        • QueryInterfaceCreateTableOptions
        • QueryInterfaceIndexOptions
        • QueryInterfaceRemoveIndexOptions
        • QueryOptions
        • QueryOptionsWithModel
        • QueryOptionsWithType
        • QueryRawOptions
        • QueryRawOptionsWithModel
        • QueryRawOptionsWithType
        • QuoteTableOptions
        • RangeOptions
        • RawConstraintDescription
        • RemoveColumnOptions
        • RemoveColumnQueryOptions
        • RemoveConstraintOptions
        • RemoveConstraintQueryOptions
        • RemoveIndexQueryOptions
        • RenameTableOptions
        • RenameTableQueryOptions
        • Replaceable
        • ReplicationOptions
        • RestoreOptions
        • RollbackSavepointOptions
        • RollbackTransactionOptions
        • SaveOptions
        • SchemaOptions
        • ScopeOptions
        • SearchPathable
        • SetIsolationLevelOptions
        • SetOptions
        • SetSessionVariablesOptions
        • ShowConstraintsOptions
        • ShowConstraintsQueryOptions
        • Silent
        • StartTransactionOptions
        • StartTransactionQueryOptions
        • SyncAlterOptions
        • SyncOptions
        • TableNameWithSchema
        • TextOptions
        • ThroughOptions
        • TimeOptions
        • TransactionOptions
        • Transactionable
        • TruncateOptions
        • TruncateTableQueryOptions
        • UpdateOptions
        • UpsertOptions
        • Validator
        • VirtualOptions
        • WhereGeometryOptions
        • WhereOperators
        • AddConstraintOptions
        • AddConstraintQueryOptions
        • AllowAnyAll
        • AttributeNames
        • Attributes
        • BelongsToCreateAssociationMixin
        • BelongsToGetAssociationMixin
        • BelongsToManyAddAssociationMixin
        • BelongsToManyAddAssociationsMixin
        • BelongsToManyCountAssociationsMixin
        • BelongsToManyCreateAssociationMixin
        • BelongsToManyGetAssociationsMixin
        • BelongsToManyHasAssociationMixin
        • BelongsToManyHasAssociationsMixin
        • BelongsToManyRemoveAssociationMixin
        • BelongsToManyRemoveAssociationsMixin
        • BelongsToManySetAssociationsMixin
        • BelongsToSetAssociationMixin
        • BindOrReplacements
        • BrandedKeysOf
        • BuiltModelName
        • BuiltModelOptions
        • ColumnReference
        • ColumnsDescription
        • Connection
        • ConnectionOptions
        • ConstraintType
        • CountWithOptions
        • CreateTableAttributes
        • CreationAttributes
        • CreationOptional
        • DataType
        • DataTypeClass
        • DataTypeClassOrInstance
        • DataTypeInstance
        • DialectName
        • DialectOptions
        • DynamicValues
        • EmptyRange
        • Expression
        • ExtractMethods
        • FieldMap
        • FindAttributeOptions
        • ForeignKey
        • GeoJson
        • GroupOption
        • HasManyAddAssociationMixin
        • HasManyAddAssociationsMixin
        • HasManyCountAssociationsMixin
        • HasManyCreateAssociationMixin
        • HasManyGetAssociationsMixin
        • HasManyHasAssociationMixin
        • HasManyHasAssociationsMixin
        • HasManyRemoveAssociationMixin
        • HasManyRemoveAssociationsMixin
        • HasManySetAssociationsMixin
        • HasOneCreateAssociationMixin
        • HasOneGetAssociationMixin
        • HasOneSetAssociationMixin
        • Includeable
        • IndexMethod
        • IndexType
        • InferAttributes
        • InferAttributesOptions
        • InferCreationAttributes
        • InputRangePart
        • InternalInferAttributeKeysFromFields
        • InvalidInSqlArray
        • IsBranded
        • ModelAttributes
        • ModelDefined
        • ModelStatic
        • MultiAssociationAccessors
        • NonAttribute
        • NormalizedAssociationOptions
        • NormalizedBelongsToOptions
        • NormalizedHasManyOptions
        • NormalizedHasOneOptions
        • NormalizedOptions
        • NormalizedTransactionOptions
        • OperatorValues
        • Options
        • Order
        • OrderItem
        • OrderItemAssociation
        • OrderItemColumn
        • PositionPosition
        • ProjectionAlias
        • Rangable
        • Range
        • RangePart
        • RawConnectionOptions
        • ReferentialAction
        • RetryOptions
        • SingleAssociationAccessors
        • StaticValues
        • TableName
        • TableOrModel
        • UpdateValues
        • WhereOptions
        • WhereSerializableValue
        • CreationAttributeBrand
        • ForeignKeyBrand
        • JSON_NULL
        • NonAttributeBrand
        • Op
        • SQL_NULL
        • and
        • importModels
        • isModelStatic
        • isSameInitialModel
        • json
        • or
        • sql
        • useInflection
    • utils
      • common
        • SortDirection
        • MapView
        • MultiMap
        • SetView
        • MapLike
        • ReadonlyMapLike
        • ReadonlySetLike
        • SetLike
        • AllowArray
        • AllowIterable
        • AllowPromise
        • AllowReadonlyArray
        • AnyFunction
        • AnyRecord
        • Comparator
        • Entry
        • JsonArray
        • JsonObject
        • JsonPrimitive
        • JsonValue
        • MakeNonNullish
        • MakeNullish
        • NonNull
        • NonNullish
        • NonUndefined
        • NonUndefinedKeys
        • Nullish
        • PartialBy
        • PartialOrUndefined
        • PartialReadonlyRecord
        • PartialRecord
        • PickByType
        • ReadOnlyRecord
        • RequiredBy
        • StrictRequiredBy
        • UnknownFunction
        • UnknownRecord
        • EMPTY_ARRAY
        • EMPTY_OBJECT
        • arrayFromAsync
        • basicComparator
        • cloneDeepPlainValues
        • combinedIterator
        • count
        • every
        • find
        • freezeDeep
        • freezeDescendants
        • getImmutablePojo
        • getSynchronizedTypeKeys
        • inspect
        • isAnyObject
        • isBigInt
        • isError
        • isFunction
        • isIterable
        • isNotAnyObject
        • isNotBigInt
        • isNotError
        • isNotFunction
        • isNotIterable
        • isNotNullish
        • isNotNumber
        • isNotPlainObject
        • isNotString
        • isNullish
        • isNumber
        • isPlainObject
        • isString
        • isValidIntegerSyntax
        • isValidNumberSyntax
        • join
        • localizedStringComparator
        • map
        • parallelForEach
        • parseBigInt
        • parseBoolean
        • parseFiniteNumber
        • parseSafeInteger
        • pojo
        • shallowClonePojo
        • some
        • splitObject
        • upcast
      • node
        • ReadFileOptions
        • checkFileExists
        • fileUrlToDirname
        • isNodeError
        • isNotNodeError
        • listDirectories
        • listFilesRecursive
        • readFileIfExists
    • validator.js
      • <internal>
        • PropertyDescriptor
        • PropertyOrGetterDescriptor
      • Contains
      • Equals
      • Is
      • IsAfter
      • IsAlpha
      • IsAlphanumeric
      • IsArray
      • IsBefore
      • IsCreditCard
      • IsDate
      • IsDecimal
      • IsEmail
      • IsFloat
      • IsIP
      • IsIPv4
      • IsIPv6
      • IsIn
      • IsInt
      • IsLowercase
      • IsNumeric
      • IsUUID
      • IsUppercase
      • IsUrl
      • Len
      • Max
      • Min
      • Not
      • NotContains
      • NotEmpty
      • NotIn

Generated using TypeDoc