Commit Graph

12 Commits

Author SHA1 Message Date
fcd7cb2013
overhaul models to be more sensible by separating "instance" logic into a separate Document type 🪷 2024-09-14 02:09:38 -04:00
0d8ad2a356
make iti_single and iti_multi sample values into functions 2024-09-12 18:31:35 -04:00
fd835efa46
[feat] add gridfs support! 🎉
(test cases included)
2024-09-12 18:10:03 -04:00
aa16700270
add test cases for chaining Query methods 2024-09-12 17:38:15 -04:00
4834dc5908
[instagram] add children of bodom as a testing band :] 2024-09-12 17:20:17 -04:00
4297071b3b
restructuring
- use pointers where possible when using reflection
- add a `CreateSlice` func, for storing slices of Models created by Find and FindPaged queries
- modify tests to use `CreateSlice`
2024-09-05 17:53:04 -04:00
14ac93b327
rename model methods
- rename FindAll -> Find
- rename Find -> FindRaw
2024-09-05 14:32:34 -04:00
fefa695063
some changes
- move internal model helper funcs into model_internals.go
- add Swap method to Model
- modify `getNested` util to support indexing slice fields such as `Abc[0].Def`
2024-09-05 13:57:35 -04:00
924b3fc9d2
many additions!
- add support for `autoinc` struct tag
- add Pull method to Model
- add utility func to increment a value of an unknown type by 1
- idcounter.go no longer increments the counter value (it is now up to the caller to increment the returned value themselves)
2024-09-04 19:43:12 -04:00
f721b32e01
refactor some things, add Delete method, improve Save method 2024-09-03 00:14:12 -04:00
3f8fded6e5
add a new Append method to Model, handle misc errors, unexport some funcs + methods 2024-09-02 19:39:23 -04:00
f46aab2f5f
hello world! 🌸 2024-09-01 16:17:48 -04:00