MCPcopy Index your code
hub / github.com/TruthHun/BookStack / Find

Method Find

models/book.go:183–190  ·  view source on GitHub ↗
(id int, cols ...string)

Source from the content-addressed store, hash-verified

181}
182
183func (m *Book) Find(id int, cols ...string) (book *Book, err error) {
184 if id <= 0 {
185 return
186 }
187 o := orm.NewOrm()
188 err = o.QueryTable(m.TableNameWithPrefix()).Filter("book_id", id).One(m, cols...)
189 return m, err
190}
191
192func (m *Book) Update(cols ...string) (err error) {
193 o := orm.NewOrm()

Callers 15

CreateTokenMethod · 0.95
BookInfoMethod · 0.95
ReadMethod · 0.95
ListsMethod · 0.95
ReadMethod · 0.45
CreateMethod · 0.45
UploadMethod · 0.45
DownloadAttachmentMethod · 0.45
RemoveAttachmentMethod · 0.45
DeleteMethod · 0.45
ContentMethod · 0.45
HistoryMethod · 0.45

Calls 1

TableNameWithPrefixMethod · 0.95

Tested by

no test coverage detected