MCPcopy Create free account

hub / github.com/YadaYuki/omochi / functions

Functions762 in github.com/YadaYuki/omochi

↓ 138 callersMethodWhere
Where adds a new predicate for the TermQuery builder.
pkg/ent/term_query.go:34
↓ 32 callersFunctionNewError
(code code.Code, err any)
pkg/errors/error.go:14
↓ 27 callersMethodError
(...interface{})
pkg/ent/enttest/enttest.go:20
↓ 22 callersMethodQuery
Query calls tx.Query.
pkg/ent/tx.go:209
↓ 21 callersMethodClose
Close is a nop close.
pkg/ent/tx.go:193
↓ 16 callersFunctionNewDocumentCreate
(content string, tokenizedConetnt []string)
pkg/domain/entities/document.go:20
↓ 15 callersMethodUpdatedAt
UpdatedAt returns the value of the "updated_at" field in the mutation.
pkg/ent/mutation.go:668
↓ 14 callersMethodMutate
Mutate calls f(ctx, m).
pkg/ent/hook/hook.go:30
↓ 13 callersFunctionNewZlibInvertIndexCompresser
()
pkg/infrastructure/compresser/zlib_invert_index_compresser.go:20
↓ 11 callersMethodCreatedAt
CreatedAt returns the value of the "created_at" field in the mutation.
pkg/ent/mutation.go:632
↓ 11 callersMethodGet
Get returns a Term entity by its id.
pkg/ent/client.go:295
↓ 11 callersFunctionNewTermEntRepository
(db *ent.Client)
pkg/infrastructure/persistence/entdb/term_ent_repository.go:20
↓ 11 callersFunctionOpen
Open calls ent.Open and auto-run migration.
pkg/ent/enttest/enttest.go:55
↓ 9 callersMethodSave
Save creates the Term in the database.
pkg/ent/term_create.go:87
↓ 8 callersMethodAll
All executes the query and returns a list of Terms.
pkg/ent/term_query.go:165
↓ 8 callersMethodCreate
Create returns a create builder for Term.
pkg/ent/client.go:240
↓ 8 callersFunctionNewDocumentEntRepository
(db *ent.Client)
pkg/infrastructure/persistence/entdb/document_ent_repository.go:21
↓ 8 callersMethodPostingListCompressed
PostingListCompressed returns the value of the "posting_list_compressed" field in the mutation.
pkg/ent/mutation.go:740
↓ 8 callersMethodUpdate
Update allows overriding fields `UPDATE` values. See the TermCreate.OnConflict documentation for more info.
pkg/ent/term_create.go:402
↓ 8 callersMethodUpdate
Update allows overriding fields `UPDATE` values. See the TermCreateBulk.OnConflict documentation for more info.
pkg/ent/term_create.go:677
↓ 8 callersMethodUpdate
Update allows overriding fields `UPDATE` values. See the DocumentCreate.OnConflict documentation for more info.
pkg/ent/document_create.go:362
↓ 8 callersMethodUpdate
Update allows overriding fields `UPDATE` values. See the DocumentCreateBulk.OnConflict documentation for more info.
pkg/ent/document_create.go:629
↓ 7 callersMethodScan
Scan applies the selector query and scans the result into the given value.
pkg/ent/term_query.go:711
↓ 7 callersMethodSetPostingListCompressed
SetPostingListCompressed sets the "posting_list_compressed" field.
pkg/ent/mutation.go:735
↓ 7 callersMethodSetWord
SetWord sets the "word" field.
pkg/ent/mutation.go:699
↓ 6 callersMethodLimit
Limit adds a limit step to the query.
pkg/ent/document_query.go:39
↓ 6 callersMethodLimit
Limit adds a limit step to the query.
pkg/ent/term_query.go:40
↓ 6 callersFunctionNewEnProseTokenizer
()
pkg/infrastructure/tokenizer/eng/en_prose_tokenizer.go:17
↓ 6 callersFunctionNewInvertIndexCompressed
(postingListCompressed []byte)
pkg/domain/entities/invert_index.go:15
↓ 6 callersMethodOnly
Only returns a single Term entity found by the query, ensuring it only returns one. Returns a *NotSingularError when more than one Term entity is foun
pkg/ent/term_query.go:112
↓ 6 callersMethodScan
Scan applies the selector query and scans the result into the given value.
pkg/ent/document_query.go:710
↓ 6 callersFunctioncolumnChecker
columnChecker returns a function indicates if the column exists in the given column.
pkg/ent/ent.go:31
↓ 5 callersMethodContent
Content returns the value of the "content" field in the mutation.
pkg/ent/mutation.go:225
↓ 5 callersMethodDialect
Dialect returns the dialect of the driver we started the transaction from.
pkg/ent/tx.go:190
↓ 5 callersMethodExec
Exec executes the query.
pkg/ent/term_create.go:138
↓ 5 callersMethodExec
Exec executes the query.
pkg/ent/document_create.go:122
↓ 5 callersMethodFields
Fields of the Term.
pkg/ent/schema/term.go:16
↓ 5 callersMethodHooks
Hooks returns the client hooks.
pkg/ent/client.go:219
↓ 5 callersMethodHooks
Hooks returns the client hooks.
pkg/ent/client.go:309
↓ 5 callersMethodID
Exec executes the UPSERT query and returns the inserted/updated ID.
pkg/ent/term_create.go:481
↓ 5 callersFunctionIsNotFound
IsNotFound returns a boolean indicating whether the error is a not found error.
pkg/ent/ent.go:182
↓ 5 callersFunctionOpen
Open opens a database/sql.DB specified by the driver name and the data source name, and returns a new client attached to it. Optional parameters can b
pkg/ent/client.go:49
↓ 5 callersMethodScan
Scan applies the group-by query and scans the result into the given value.
pkg/ent/document_query.go:452
↓ 5 callersMethodScan
Scan applies the group-by query and scans the result into the given value.
pkg/ent/term_query.go:453
↓ 5 callersMethodSelect
Select allows the selection one or more fields/columns for the given query, instead of selecting all fields in the entity. Example: var v []struct
pkg/ent/document_query.go:291
↓ 5 callersMethodSelect
Select allows the selection one or more fields/columns for the given query, instead of selecting all fields in the entity. Example: var v []struct
pkg/ent/term_query.go:292
↓ 5 callersMethodString
String implements the fmt.Stringer.
pkg/ent/term.go:112
↓ 5 callersMethodTokenizedContent
TokenizedContent returns the value of the "tokenized_content" field in the mutation.
pkg/ent/mutation.go:261
↓ 5 callersMethodWord
Word returns the value of the "word" field in the mutation.
pkg/ent/mutation.go:704
↓ 5 callersFunctionnewDocumentMutation
newDocumentMutation creates new mutation for the Document entity.
pkg/ent/mutation.go:55
↓ 5 callersFunctionnewTermMutation
newTermMutation creates new mutation for the Term entity.
pkg/ent/mutation.go:528
↓ 5 callersMethodprepareQuery
(ctx context.Context)
pkg/ent/document_query.go:296
↓ 5 callersMethodprepareQuery
(ctx context.Context)
pkg/ent/term_query.go:297
↓ 4 callersMethodClone
Clone returns a duplicate of the TermQuery builder, including all associated steps. It can be used to prepare common query builders and use them diffe
pkg/ent/term_query.go:235
↓ 4 callersFunctionContains
ref: https://pkg.go.dev/golang.org/x/exp/slices
pkg/common/slices/slices.go:7
↓ 4 callersMethodDecompress
(ctx context.Context, invertIndexes *entities.InvertIndexCompressed)
pkg/domain/service/invert_index_compresser.go:12
↓ 4 callersFunctionID
ID filters vertices based on their ID field.
pkg/ent/document/where.go:13
↓ 4 callersFunctionNewDocumentClient
NewDocumentClient returns a client for the Document from the given config.
pkg/ent/client.go:139
↓ 4 callersFunctionNewInvertIndex
(postingList *[]Posting)
pkg/domain/entities/invert_index.go:11
↓ 4 callersFunctionNewTermClient
NewTermClient returns a client for the Term from the given config.
pkg/ent/client.go:229
↓ 4 callersMethodinit
()
pkg/ent/client.go:40
↓ 3 callersMethodAll
All executes the query and returns a list of Documents.
pkg/ent/document_query.go:164
↓ 3 callersMethodClient
Client returns a new `ent.Client` from the mutation. If the mutation was executed in a transaction (ent.Tx), a transactional client is returned.
pkg/ent/mutation.go:575
↓ 3 callersMethodCommit
(context.Context, *Tx)
pkg/ent/tx.go:37
↓ 3 callersMethodCreate
Create creates all schema resources.
pkg/ent/migrate/migrate.go:47
↓ 3 callersMethodDecompress
(ctx context.Context, invertIndex *entities.InvertIndexCompressed)
pkg/infrastructure/compresser/zlib_invert_index_compresser.go:57
↓ 3 callersMethodFailNow
()
pkg/ent/enttest/enttest.go:19
↓ 3 callersMethodFindDocumentsByIds
(ctx context.Context, ids *[]int64)
pkg/domain/repository/document_repository.go:12
↓ 3 callersMethodFindTermCompressedsByWords
(ctx context.Context, words *[]string)
pkg/domain/repository/term_repository.go:15
↓ 3 callersFunctionID
ID filters vertices based on their ID field.
pkg/ent/term/where.go:14
↓ 3 callersMethodID
ID returns the ID value in the mutation. Note that the ID is only available if it was provided to the builder or after it was returned from the databa
pkg/ent/mutation.go:600
↓ 3 callersMethodIDs
IDs executes the query and returns a list of Document IDs.
pkg/ent/document_query.go:181
↓ 3 callersMethodIDs
IDs executes the query and returns a list of Term IDs.
pkg/ent/term_query.go:182
↓ 3 callersMethodIndexingDocument
(ctx context.Context, document *entities.DocumentCreate)
pkg/infrastructure/indexer/indexer.go:24
↓ 3 callersMethodIndexingDocumentWithTx
IndexingDocumentWithTx is a function for indexing a document with RDB Transaction.
pkg/infrastructure/indexer/entindexer/ent_indexer.go:27
↓ 3 callersFunctionNewEntIndexer
(db *ent.Client, t *wrapper.EntTransactionWrapper, tokenizer service.Tokenizer, invertIndexCompresser service.
pkg/infrastructure/indexer/entindexer/ent_indexer.go:22
↓ 3 callersFunctionNewEntTransactionWrapper
()
pkg/infrastructure/transaction/wrapper/transaction_wrapper.go:15
↓ 3 callersFunctionNewTermCreate
(word string, invertIndex *InvertIndex)
pkg/domain/entities/term.go:35
↓ 3 callersFunctionNewTfIdfDocumentRanker
()
pkg/infrastructure/documentranker/tfidfranker/tf_idf_document_ranker.go:16
↓ 3 callersMethodRollback
(context.Context, *Tx)
pkg/ent/tx.go:92
↓ 3 callersMethodSave
Save creates the Document in the database.
pkg/ent/document_create.go:71
↓ 3 callersMethodSetUpdatedAt
SetUpdatedAt sets the "updated_at" field.
pkg/ent/document_update.go:32
↓ 3 callersMethodSetUpdatedAt
SetUpdatedAt sets the "updated_at" field.
pkg/ent/term_update.go:32
↓ 3 callersFunctionValidColumn
ValidColumn reports if the column name is valid (part of the table columns).
pkg/ent/term/term.go:38
↓ 3 callersFunctionValidColumn
ValidColumn reports if the column name is valid (part of the table columns).
pkg/ent/document/document.go:36
↓ 3 callersMethodcheck
check runs all checks and user-defined validators on the builder.
pkg/ent/term_create.go:167
↓ 3 callersMethodcheck
check runs all checks and user-defined validators on the builder.
pkg/ent/document_create.go:147
↓ 3 callersMethodinit
()
pkg/ent/tx.go:153
↓ 2 callersMethodAddedField
AddedField returns the numeric value that was incremented/decremented on a field with the given name. The second boolean return value indicates that t
pkg/ent/mutation.go:885
↓ 2 callersMethodBools
Bools returns list of bools from group-by. It is only allowed when executing a group-by query with one field.
pkg/ent/document_query.go:617
↓ 2 callersMethodBools
Bools returns list of bools from a selector. It is only allowed when selecting one field.
pkg/ent/document_query.go:867
↓ 2 callersMethodBools
Bools returns list of bools from group-by. It is only allowed when executing a group-by query with one field.
pkg/ent/term_query.go:618
↓ 2 callersMethodBools
Bools returns list of bools from a selector. It is only allowed when selecting one field.
pkg/ent/term_query.go:868
↓ 2 callersMethodCompress
(ctx context.Context, invertIndex *entities.InvertIndex)
pkg/infrastructure/compresser/zlib_invert_index_compresser.go:24
↓ 2 callersMethodCount
Count returns the count of the given query.
pkg/ent/term_query.go:200
↓ 2 callersMethodCreateDocument
(ctx context.Context, doc *entities.DocumentCreate)
pkg/infrastructure/persistence/entdb/document_ent_repository.go:25
↓ 2 callersMethodExec
Exec executes the deletion query and returns how many vertices were deleted.
pkg/ent/document_delete.go:30
↓ 2 callersMethodExec
Exec executes the deletion query and returns how many vertices were deleted.
pkg/ent/term_delete.go:30
↓ 2 callersMethodField
Field returns the value of a field with the given name. The second boolean return value indicates that this field was not set, or was not defined in t
pkg/ent/mutation.go:808
↓ 2 callersMethodFieldCleared
FieldCleared returns a boolean indicating if a field with the given name was cleared in this mutation.
pkg/ent/mutation.go:906
next →1–100 of 762, ranked by callers