MCPcopy Index your code
hub / github.com/dnote/dnote / selectFTSFields

Function selectFTSFields

pkg/server/app/notes.go:184–199  ·  view source on GitHub ↗
(conn *gorm.DB, params *ftsParams)

Source from the content-addressed store, hash-verified

182}
183
184func selectFTSFields(conn *gorm.DB, params *ftsParams) *gorm.DB {
185 bodyExpr := getFTSBodyExpression(params)
186
187 return conn.Select(`
188notes.id,
189notes.uuid,
190notes.created_at,
191notes.updated_at,
192notes.book_uuid,
193notes.user_id,
194notes.added_on,
195notes.edited_on,
196notes.usn,
197notes.deleted,
198` + bodyExpr)
199}
200
201func getNotesBaseQuery(db *gorm.DB, userID int, q GetNotesParams) *gorm.DB {
202 conn := db.Where(

Callers 1

getNotesBaseQueryFunction · 0.85

Calls 1

getFTSBodyExpressionFunction · 0.85

Tested by

no test coverage detected