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