Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/YadaYuki/omochi
/ functions
Functions
762 in github.com/YadaYuki/omochi
⨍
Functions
762
◇
Types & classes
107
↓ 138 callers
Method
Where
Where adds a new predicate for the TermQuery builder.
pkg/ent/term_query.go:34
↓ 32 callers
Function
NewError
(code code.Code, err any)
pkg/errors/error.go:14
↓ 27 callers
Method
Error
(...interface{})
pkg/ent/enttest/enttest.go:20
↓ 22 callers
Method
Query
Query calls tx.Query.
pkg/ent/tx.go:209
↓ 21 callers
Method
Close
Close is a nop close.
pkg/ent/tx.go:193
↓ 16 callers
Function
NewDocumentCreate
(content string, tokenizedConetnt []string)
pkg/domain/entities/document.go:20
↓ 15 callers
Method
UpdatedAt
UpdatedAt returns the value of the "updated_at" field in the mutation.
pkg/ent/mutation.go:668
↓ 14 callers
Method
Mutate
Mutate calls f(ctx, m).
pkg/ent/hook/hook.go:30
↓ 13 callers
Function
NewZlibInvertIndexCompresser
()
pkg/infrastructure/compresser/zlib_invert_index_compresser.go:20
↓ 11 callers
Method
CreatedAt
CreatedAt returns the value of the "created_at" field in the mutation.
pkg/ent/mutation.go:632
↓ 11 callers
Method
Get
Get returns a Term entity by its id.
pkg/ent/client.go:295
↓ 11 callers
Function
NewTermEntRepository
(db *ent.Client)
pkg/infrastructure/persistence/entdb/term_ent_repository.go:20
↓ 11 callers
Function
Open
Open calls ent.Open and auto-run migration.
pkg/ent/enttest/enttest.go:55
↓ 9 callers
Method
Save
Save creates the Term in the database.
pkg/ent/term_create.go:87
↓ 8 callers
Method
All
All executes the query and returns a list of Terms.
pkg/ent/term_query.go:165
↓ 8 callers
Method
Create
Create returns a create builder for Term.
pkg/ent/client.go:240
↓ 8 callers
Function
NewDocumentEntRepository
(db *ent.Client)
pkg/infrastructure/persistence/entdb/document_ent_repository.go:21
↓ 8 callers
Method
PostingListCompressed
PostingListCompressed returns the value of the "posting_list_compressed" field in the mutation.
pkg/ent/mutation.go:740
↓ 8 callers
Method
Update
Update allows overriding fields `UPDATE` values. See the TermCreate.OnConflict documentation for more info.
pkg/ent/term_create.go:402
↓ 8 callers
Method
Update
Update allows overriding fields `UPDATE` values. See the TermCreateBulk.OnConflict documentation for more info.
pkg/ent/term_create.go:677
↓ 8 callers
Method
Update
Update allows overriding fields `UPDATE` values. See the DocumentCreate.OnConflict documentation for more info.
pkg/ent/document_create.go:362
↓ 8 callers
Method
Update
Update allows overriding fields `UPDATE` values. See the DocumentCreateBulk.OnConflict documentation for more info.
pkg/ent/document_create.go:629
↓ 7 callers
Method
Scan
Scan applies the selector query and scans the result into the given value.
pkg/ent/term_query.go:711
↓ 7 callers
Method
SetPostingListCompressed
SetPostingListCompressed sets the "posting_list_compressed" field.
pkg/ent/mutation.go:735
↓ 7 callers
Method
SetWord
SetWord sets the "word" field.
pkg/ent/mutation.go:699
↓ 6 callers
Method
Limit
Limit adds a limit step to the query.
pkg/ent/document_query.go:39
↓ 6 callers
Method
Limit
Limit adds a limit step to the query.
pkg/ent/term_query.go:40
↓ 6 callers
Function
NewEnProseTokenizer
()
pkg/infrastructure/tokenizer/eng/en_prose_tokenizer.go:17
↓ 6 callers
Function
NewInvertIndexCompressed
(postingListCompressed []byte)
pkg/domain/entities/invert_index.go:15
↓ 6 callers
Method
Only
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 callers
Method
Scan
Scan applies the selector query and scans the result into the given value.
pkg/ent/document_query.go:710
↓ 6 callers
Function
columnChecker
columnChecker returns a function indicates if the column exists in the given column.
pkg/ent/ent.go:31
↓ 5 callers
Method
Content
Content returns the value of the "content" field in the mutation.
pkg/ent/mutation.go:225
↓ 5 callers
Method
Dialect
Dialect returns the dialect of the driver we started the transaction from.
pkg/ent/tx.go:190
↓ 5 callers
Method
Exec
Exec executes the query.
pkg/ent/term_create.go:138
↓ 5 callers
Method
Exec
Exec executes the query.
pkg/ent/document_create.go:122
↓ 5 callers
Method
Fields
Fields of the Term.
pkg/ent/schema/term.go:16
↓ 5 callers
Method
Hooks
Hooks returns the client hooks.
pkg/ent/client.go:219
↓ 5 callers
Method
Hooks
Hooks returns the client hooks.
pkg/ent/client.go:309
↓ 5 callers
Method
ID
Exec executes the UPSERT query and returns the inserted/updated ID.
pkg/ent/term_create.go:481
↓ 5 callers
Function
IsNotFound
IsNotFound returns a boolean indicating whether the error is a not found error.
pkg/ent/ent.go:182
↓ 5 callers
Function
Open
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 callers
Method
Scan
Scan applies the group-by query and scans the result into the given value.
pkg/ent/document_query.go:452
↓ 5 callers
Method
Scan
Scan applies the group-by query and scans the result into the given value.
pkg/ent/term_query.go:453
↓ 5 callers
Method
Select
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 callers
Method
Select
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 callers
Method
String
String implements the fmt.Stringer.
pkg/ent/term.go:112
↓ 5 callers
Method
TokenizedContent
TokenizedContent returns the value of the "tokenized_content" field in the mutation.
pkg/ent/mutation.go:261
↓ 5 callers
Method
Word
Word returns the value of the "word" field in the mutation.
pkg/ent/mutation.go:704
↓ 5 callers
Function
newDocumentMutation
newDocumentMutation creates new mutation for the Document entity.
pkg/ent/mutation.go:55
↓ 5 callers
Function
newTermMutation
newTermMutation creates new mutation for the Term entity.
pkg/ent/mutation.go:528
↓ 5 callers
Method
prepareQuery
(ctx context.Context)
pkg/ent/document_query.go:296
↓ 5 callers
Method
prepareQuery
(ctx context.Context)
pkg/ent/term_query.go:297
↓ 4 callers
Method
Clone
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 callers
Function
Contains
ref: https://pkg.go.dev/golang.org/x/exp/slices
pkg/common/slices/slices.go:7
↓ 4 callers
Method
Decompress
(ctx context.Context, invertIndexes *entities.InvertIndexCompressed)
pkg/domain/service/invert_index_compresser.go:12
↓ 4 callers
Function
ID
ID filters vertices based on their ID field.
pkg/ent/document/where.go:13
↓ 4 callers
Function
NewDocumentClient
NewDocumentClient returns a client for the Document from the given config.
pkg/ent/client.go:139
↓ 4 callers
Function
NewInvertIndex
(postingList *[]Posting)
pkg/domain/entities/invert_index.go:11
↓ 4 callers
Function
NewTermClient
NewTermClient returns a client for the Term from the given config.
pkg/ent/client.go:229
↓ 4 callers
Method
init
()
pkg/ent/client.go:40
↓ 3 callers
Method
All
All executes the query and returns a list of Documents.
pkg/ent/document_query.go:164
↓ 3 callers
Method
Client
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 callers
Method
Commit
(context.Context, *Tx)
pkg/ent/tx.go:37
↓ 3 callers
Method
Create
Create creates all schema resources.
pkg/ent/migrate/migrate.go:47
↓ 3 callers
Method
Decompress
(ctx context.Context, invertIndex *entities.InvertIndexCompressed)
pkg/infrastructure/compresser/zlib_invert_index_compresser.go:57
↓ 3 callers
Method
FailNow
()
pkg/ent/enttest/enttest.go:19
↓ 3 callers
Method
FindDocumentsByIds
(ctx context.Context, ids *[]int64)
pkg/domain/repository/document_repository.go:12
↓ 3 callers
Method
FindTermCompressedsByWords
(ctx context.Context, words *[]string)
pkg/domain/repository/term_repository.go:15
↓ 3 callers
Function
ID
ID filters vertices based on their ID field.
pkg/ent/term/where.go:14
↓ 3 callers
Method
ID
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 callers
Method
IDs
IDs executes the query and returns a list of Document IDs.
pkg/ent/document_query.go:181
↓ 3 callers
Method
IDs
IDs executes the query and returns a list of Term IDs.
pkg/ent/term_query.go:182
↓ 3 callers
Method
IndexingDocument
(ctx context.Context, document *entities.DocumentCreate)
pkg/infrastructure/indexer/indexer.go:24
↓ 3 callers
Method
IndexingDocumentWithTx
IndexingDocumentWithTx is a function for indexing a document with RDB Transaction.
pkg/infrastructure/indexer/entindexer/ent_indexer.go:27
↓ 3 callers
Function
NewEntIndexer
(db *ent.Client, t *wrapper.EntTransactionWrapper, tokenizer service.Tokenizer, invertIndexCompresser service.
pkg/infrastructure/indexer/entindexer/ent_indexer.go:22
↓ 3 callers
Function
NewEntTransactionWrapper
()
pkg/infrastructure/transaction/wrapper/transaction_wrapper.go:15
↓ 3 callers
Function
NewTermCreate
(word string, invertIndex *InvertIndex)
pkg/domain/entities/term.go:35
↓ 3 callers
Function
NewTfIdfDocumentRanker
()
pkg/infrastructure/documentranker/tfidfranker/tf_idf_document_ranker.go:16
↓ 3 callers
Method
Rollback
(context.Context, *Tx)
pkg/ent/tx.go:92
↓ 3 callers
Method
Save
Save creates the Document in the database.
pkg/ent/document_create.go:71
↓ 3 callers
Method
SetUpdatedAt
SetUpdatedAt sets the "updated_at" field.
pkg/ent/document_update.go:32
↓ 3 callers
Method
SetUpdatedAt
SetUpdatedAt sets the "updated_at" field.
pkg/ent/term_update.go:32
↓ 3 callers
Function
ValidColumn
ValidColumn reports if the column name is valid (part of the table columns).
pkg/ent/term/term.go:38
↓ 3 callers
Function
ValidColumn
ValidColumn reports if the column name is valid (part of the table columns).
pkg/ent/document/document.go:36
↓ 3 callers
Method
check
check runs all checks and user-defined validators on the builder.
pkg/ent/term_create.go:167
↓ 3 callers
Method
check
check runs all checks and user-defined validators on the builder.
pkg/ent/document_create.go:147
↓ 3 callers
Method
init
()
pkg/ent/tx.go:153
↓ 2 callers
Method
AddedField
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 callers
Method
Bools
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 callers
Method
Bools
Bools returns list of bools from a selector. It is only allowed when selecting one field.
pkg/ent/document_query.go:867
↓ 2 callers
Method
Bools
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 callers
Method
Bools
Bools returns list of bools from a selector. It is only allowed when selecting one field.
pkg/ent/term_query.go:868
↓ 2 callers
Method
Compress
(ctx context.Context, invertIndex *entities.InvertIndex)
pkg/infrastructure/compresser/zlib_invert_index_compresser.go:24
↓ 2 callers
Method
Count
Count returns the count of the given query.
pkg/ent/term_query.go:200
↓ 2 callers
Method
CreateDocument
(ctx context.Context, doc *entities.DocumentCreate)
pkg/infrastructure/persistence/entdb/document_ent_repository.go:25
↓ 2 callers
Method
Exec
Exec executes the deletion query and returns how many vertices were deleted.
pkg/ent/document_delete.go:30
↓ 2 callers
Method
Exec
Exec executes the deletion query and returns how many vertices were deleted.
pkg/ent/term_delete.go:30
↓ 2 callers
Method
Field
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 callers
Method
FieldCleared
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