GetDocument with raw returns the document from the bucket. This may perform an on-demand import.
(ctx context.Context, docid string, unmarshalLevel DocumentUnmarshalLevel)
| 62 | |
| 63 | // GetDocument with raw returns the document from the bucket. This may perform an on-demand import. |
| 64 | func (c *DatabaseCollection) GetDocument(ctx context.Context, docid string, unmarshalLevel DocumentUnmarshalLevel) (doc *Document, err error) { |
| 65 | doc, _, err = c.GetDocumentWithRaw(ctx, docid, unmarshalLevel) |
| 66 | return doc, err |
| 67 | } |
| 68 | |
| 69 | // GetDocumentWithRaw returns the document from the bucket. This may perform an on-demand import. |
| 70 | func (c *DatabaseCollection) GetDocumentWithRaw(ctx context.Context, docid string, unmarshalLevel DocumentUnmarshalLevel) (doc *Document, rawBucketDoc *sgbucket.BucketDocument, err error) { |
no test coverage detected