Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/sequelize/sequelize-typescript
/ functions
Functions
297 in github.com/sequelize/sequelize-typescript
⨍
Functions
297
◇
Types & classes
305
↓ 102 callers
Method
addModels
(arg: (ModelCtor | string)[], modelMatch?: ModelMatch)
src/sequelize/sequelize/sequelize.ts:48
↓ 70 callers
Function
assertInstance
(instance: any | any[], expectedValues: any | any[])
test/utils/common.ts:6
↓ 54 callers
Function
Column
(...args: any[])
src/model/column/column.ts:14
↓ 43 callers
Function
addAttributeOptions
( target: any, propertyName: string, options: Partial<ModelAttributeColumnOptions> )
src/model/column/attribute-service.ts:48
↓ 40 callers
Method
get
(this: Product)
test/specs/model.spec.ts:690
↓ 38 callers
Function
implementHookDecorator
( hookType: keyof SequelizeHooks, args: any[] )
src/hooks/shared/hooks-service.ts:30
↓ 37 callers
Function
ForeignKey
( relatedClassGetter: ModelClassGetter<TCreationAttributes, TModelAttributes> )
src/associations/foreign-key/foreign-key.ts:4
↓ 31 callers
Function
Table
(arg: any)
src/model/table/table.ts:7
↓ 29 callers
Function
BelongsTo
( associatedClassGetter: ModelClassGetter<TCreationAttributes, TModelAttributes>, optionsOrForeignKey?: st
src/associations/belongs-to/belongs-to.ts:17
↓ 25 callers
Function
createSequelize
( useModelsInPathOrPartialOptions?: boolean | Partial<SequelizeOptions>, define: ModelOptions<any> = {} )
test/utils/sequelize.ts:7
↓ 20 callers
Function
BelongsToMany
( associatedClassGetter: ModelClassGetter<TCreationAttributes, TModelAttributes>, throughOrOptions: |
src/associations/belongs-to-many/belongs-to-many.ts:26
↓ 18 callers
Function
HasMany
( associatedClassGetter: ModelClassGetter<TCreationAttributes, TModelAttributes>, optionsOrForeignKey?: st
src/associations/has/has-many.ts:18
↓ 16 callers
Function
Default
(value: any)
src/model/column/column-options/default.ts:6
↓ 15 callers
Method
getRepository
(modelClass: new () => M)
src/sequelize/sequelize/sequelize.ts:58
↓ 14 callers
Function
deepAssign
(target: any, ...sources: any[])
src/shared/object.ts:15
↓ 14 callers
Function
getAttributes
(target: any)
src/model/column/attribute-service.ts:10
↓ 12 callers
Function
createSequelizeValidationOnly
(useModelsInPath = true)
test/utils/sequelize.ts:32
↓ 11 callers
Function
HasOne
( associatedClassGetter: ModelClassGetter<TCreationAttributes, TModelAttributes>, optionsOrForeignKey?: st
src/associations/has/has-one.ts:18
↓ 10 callers
Function
Length
({ msg, min, max }: { msg?: string; min?: number; max?: number })
src/validation/length.ts:6
↓ 10 callers
Function
capitalize
(value: string)
src/shared/string.ts:4
↓ 10 callers
Function
inferDataType
(designType: any)
src/sequelize/data-type/data-type-service.ts:17
↓ 9 callers
Function
isDataType
(value: any)
src/sequelize/data-type/data-type-service.ts:6
↓ 8 callers
Function
getOptions
(target: any)
src/model/shared/model-service.ts:29
↓ 8 callers
Function
inferAlias
(options: any, source: any)
src/associations/alias-inference/alias-inference-service.ts:6
↓ 8 callers
Method
set
(this: Product, value: number)
test/specs/model.spec.ts:693
↓ 6 callers
Function
Index
(...args: any[])
src/model/index/index-decorator.ts:13
↓ 6 callers
Function
expectAutoGeneratedFunctions
( target: any, keys: { singular: string; plural?: string } )
test/utils/association.ts:7
↓ 6 callers
Function
manyToManyTestSuites
( Book: typeof BookModel, Author: typeof AuthorModel, AuthorBook?: typeof ConcreteModel
test/specs/association.spec.ts:660
↓ 5 callers
Function
AllowNull
(...args: any[])
src/model/column/column-options/allow-null.ts:8
↓ 5 callers
Function
Scopes
( scopesOrScopesGetter: | ScopeTableOptions<TCreationAttributes, TModelAttributes> | ScopesOptionsGe
src/scopes/scopes.ts:21
↓ 5 callers
Function
addOptions
(target: any, options: ModelOptions<any>)
src/model/shared/model-service.ts:47
↓ 5 callers
Function
getForeignKeys
( target: any )
src/associations/foreign-key/foreign-key-service.ts:70
↓ 4 callers
Function
Is
(...args: any[])
src/validation/is.ts:26
↓ 4 callers
Function
addAssociation
( target: any, association: BaseAssociation<TCreationAttributes, TModelAttributes> )
src/associations/shared/association-service.ts:31
↓ 4 callers
Function
addForeignKey
( target: any, relatedClassGetter: ModelClassGetter<TCreationAttributes, TModelAttributes>, foreignKey:
src/associations/foreign-key/foreign-key-service.ts:51
↓ 4 callers
Function
createIndexDecorator
(options: IndexOptions = {})
src/model/index/create-index-decorator.ts:8
↓ 4 callers
Function
getForeignKeyOptions
( relatedClass: ModelType<TCreationAttributes, TModelAttributes>, classWithForeignKey?: ModelType<TCreatio
src/associations/foreign-key/foreign-key-service.ts:9
↓ 4 callers
Function
getScopeOptions
( target: any )
src/scopes/scope-service.ts:81
↓ 3 callers
Function
DefaultScope
( scopeOrSsopeGetter: ScopeFindOptions<TCreationAttributes, TModelAttributes> | DefaultScopeGetter )
src/scopes/default-scope.ts:21
↓ 3 callers
Function
addAttribute
(target: any, name: string, options: any)
src/model/column/attribute-service.ts:34
↓ 3 callers
Function
addFieldToIndex
( target: any, fieldOptions: IndexFieldOptions, indexOptions: IndexOptions, indexId?: string | number
src/model/index/index-service.ts:45
↓ 3 callers
Function
addScopeOptions
( target: any, options: ScopeOptions<TCreationAttributes, TModelAttributes> )
src/scopes/scope-service.ts:69
↓ 3 callers
Function
getAssociations
( target: any )
src/associations/shared/association-service.ts:47
↓ 3 callers
Function
getPreparedAssociationOptions
( optionsOrForeignKey?: string | NonBelongsToManyAssociationOptions )
src/associations/shared/association-service.ts:13
↓ 3 callers
Method
model
( model: string | ModelType<TCreationAttributes, TModelAttributes> )
src/sequelize/sequelize/sequelize.ts:35
↓ 3 callers
Function
oneToManyTestSuites
(Book: typeof BookModel, Page: typeof PageModel)
test/specs/association.spec.ts:71
↓ 3 callers
Function
oneToOneTestSuites
(User: typeof AbstractUser, Address: typeof AbstractAddress)
test/specs/association.spec.ts:1295
↓ 3 callers
Function
oneToOneWithOptionsTestSuites
( User: typeof AbstractUser, Address: typeof AbstractAddress, alternateName = false, o
test/specs/association.spec.ts:1532
↓ 3 callers
Function
setAttributes
(target: any, attributes: any)
src/model/column/attribute-service.ts:25
↓ 2 callers
Function
NotEmpty
(...args: any[])
src/validation/not-empty.ts:8
↓ 2 callers
Function
addHook
( target: any, hookType: keyof SequelizeHooks, methodName: string, options: HookOptions = {} )
src/hooks/shared/hooks-service.ts:51
↓ 2 callers
Function
addScopeOptionsGetter
(target: any, options: ScopeOptionsGetters)
src/scopes/scope-service.ts:40
↓ 2 callers
Function
annotate
( target: any, propertyName: string, propertyDescriptor?: PropertyDescriptor, optionsOrDataType: Parti
src/model/column/column.ts:36
↓ 2 callers
Function
annotate
(target: Object, propertyName: string, option: UniqueOptions = true)
src/model/column/column-options/unique.ts:26
↓ 2 callers
Function
annotate
(target: typeof Model, options: TableOptions = {})
src/model/table/table.ts:16
↓ 2 callers
Function
annotateModelWithIndex
( target: any, propertyName: string, optionsOrName: IndexDecoratorOptions | string = {}, indexId?: str
src/model/index/index-decorator.ts:26
↓ 2 callers
Function
assign
(key: string | number | symbol, _target: any, _source: any)
src/shared/object.ts:28
↓ 2 callers
Function
getHooks
(target: any)
src/hooks/shared/hooks-service.ts:97
↓ 2 callers
Function
getIndexes
(target: any)
src/model/index/index-service.ts:28
↓ 2 callers
Function
getModelName
(target: any)
src/model/shared/model-service.ts:21
↓ 2 callers
Function
getScopeOptionsGetters
(target: any)
src/scopes/scope-service.ts:45
↓ 2 callers
Function
oneToManyWithOptionsTestSuites
( Book: typeof BookModel, Page: typeof PageModel, alternateName = false )
test/specs/association.spec.ts:475
↓ 2 callers
Function
resolveModelGetter
(options: any)
src/model/shared/model-service.ts:87
↓ 2 callers
Method
setFullName
(name: string)
test/specs/instance-methods.spec.ts:20
↓ 2 callers
Function
testOptionsProp
(instance: Sequelize)
test/specs/models/sequelize.spec.ts:31
↓ 2 callers
Function
unique
(arr: T[])
src/shared/array.ts:4
↓ 1 callers
Function
AfterBulkCreate
(...args: any[])
src/hooks/bulk/after/after-bulk-create.ts:6
↓ 1 callers
Function
AfterBulkDestroy
(...args: any[])
src/hooks/bulk/after/after-bulk-destroy.ts:6
↓ 1 callers
Function
AfterBulkRestore
(...args: any[])
src/hooks/bulk/after/after-bulk-restore.ts:6
↓ 1 callers
Function
AfterBulkUpdate
(...args: any[])
src/hooks/bulk/after/after-bulk-update.ts:6
↓ 1 callers
Function
AfterCreate
(...args: any[])
src/hooks/single/after/after-create.ts:6
↓ 1 callers
Function
AfterDestroy
(...args: any[])
src/hooks/single/after/after-destroy.ts:6
↓ 1 callers
Function
AfterFind
(...args: any[])
src/hooks/single/after/after-find.ts:6
↓ 1 callers
Function
AfterRestore
(...args: any[])
src/hooks/single/after/after-restore.ts:6
↓ 1 callers
Function
AfterSave
(...args: any[])
src/hooks/single/after/after-save.ts:6
↓ 1 callers
Function
AfterUpdate
(...args: any[])
src/hooks/single/after/after-update.ts:6
↓ 1 callers
Function
AfterUpsert
(...args: any[])
src/hooks/single/after/after-upsert.ts:6
↓ 1 callers
Function
AfterValidate
(...args: any[])
src/hooks/single/after/after-validate.ts:6
↓ 1 callers
Function
BeforeBulkCreate
(...args: any[])
src/hooks/bulk/before/before-bulk-create.ts:6
↓ 1 callers
Function
BeforeBulkDestroy
(...args: any[])
src/hooks/bulk/before/before-bulk-destroy.ts:6
↓ 1 callers
Function
BeforeBulkRestore
(...args: any[])
src/hooks/bulk/before/before-bulk-restore.ts:6
↓ 1 callers
Function
BeforeBulkUpdate
(...args: any[])
src/hooks/bulk/before/before-bulk-update.ts:6
↓ 1 callers
Function
BeforeCount
(...args: any[])
src/hooks/single/before/before-count.ts:6
↓ 1 callers
Function
BeforeCreate
(...args: any[])
src/hooks/single/before/before-create.ts:6
↓ 1 callers
Function
BeforeDestroy
(...args: any[])
src/hooks/single/before/before-destroy.ts:6
↓ 1 callers
Function
BeforeFind
(...args: any[])
src/hooks/single/before/before-find.ts:6
↓ 1 callers
Function
BeforeFindAfterExpandIncludeAll
(...args: any[])
src/hooks/single/before/before-find-after-expand-include-all.ts:6
↓ 1 callers
Function
BeforeFindAfterOptions
(...args: any[])
src/hooks/single/before/before-find-after-options.ts:6
↓ 1 callers
Function
BeforeRestore
(...args: any[])
src/hooks/single/before/before-restore.ts:6
↓ 1 callers
Function
BeforeSave
(...args: any[])
src/hooks/single/before/before-save.ts:6
↓ 1 callers
Function
BeforeUpdate
(...args: any[])
src/hooks/single/before/before-update.ts:6
↓ 1 callers
Function
BeforeUpsert
(...args: any[])
src/hooks/single/before/before-upsert.ts:6
↓ 1 callers
Function
BeforeValidate
(...args: any[])
src/hooks/single/before/before-validate.ts:6
↓ 1 callers
Function
Comment
(value: string)
src/model/column/column-options/comment.ts:6
↓ 1 callers
Function
Contains
(value: string | { msg: string; args: string })
src/validation/contains.ts:6
↓ 1 callers
Function
Equals
(value: string | { msg: string; args: string })
src/validation/equals.ts:6
↓ 1 callers
Function
IsAfter
(date: string)
src/validation/is-after.ts:6
↓ 1 callers
Function
IsBefore
(date: string)
src/validation/is-before.ts:6
↓ 1 callers
Function
IsIn
(arg: any[][] | { msg: string; args: any[][] })
src/validation/is-in.ts:6
↓ 1 callers
Function
IsUUID
(version: 3 | 4 | 5 | '3' | '4' | '5' | 'all')
src/validation/is-uuid.ts:8
next →
1–100 of 297, ranked by callers