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

Function PreloadNote

pkg/server/database/notes.go:23–25  ·  view source on GitHub ↗

PreloadNote preloads the associations for a notes for the given query

(conn *gorm.DB)

Source from the content-addressed store, hash-verified

21
22// PreloadNote preloads the associations for a notes for the given query
23func PreloadNote(conn *gorm.DB) *gorm.DB {
24 return conn.Preload("Book").Preload("User")
25}

Callers 2

GetNotesMethod · 0.92
GetNoteFunction · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected