4de1c20938
THIS DOESN'T WORK.
...
but i need to commit
2025-04-06 17:41:00 -04:00
1f9d32193f
add Count
function to Model
...
begin work on tracking populated/unpopulated fields
2025-04-05 23:44:36 -04:00
93b81308cb
improve id incrementing logic
2025-04-01 18:48:14 -04:00
322d97dc95
implement recursive deletion for gridfs files when Delete()
is called on a document
2025-04-01 18:45:36 -04:00
ad7c7f38af
replace ReplaceOne
with UpdateOne
...
this keeps timestamps intact...
2025-03-27 20:00:44 -04:00
d328bc3fbd
fix time.Time
fields not being saved
...
via adding a special case in the `serializeIDs` function (in document_internals.go)
2025-03-27 16:02:22 -04:00
11d31fbbc1
improve Save
api
...
add a `SaveWith` function that accepts `SaveOptions` as a parameter, letting you tweak things like whether timestamps will be set before an insert or update operation
2025-03-27 00:12:19 -04:00
1c18fc2bf6
fix compile errors caused by mongo driver API changes
2025-03-26 20:16:04 -04:00
8c559d5926
upgrade mongodb driver to 2.0 (may revert)
2024-09-19 19:55:36 -04:00
15d032459a
remove tons of commented-out code, general cleanup
2024-09-14 15:47:17 -04:00
fcd7cb2013
overhaul models to be more sensible by separating "instance" logic into a separate Document type ✨ 🪷
2024-09-14 02:09:38 -04:00