This website requires JavaScript.
d98fd68206
add json serialization+deserialization helpers
main
☙◦ The Tablet ❀ GamerGirlandCo ◦❧
2025-07-17 16:27:01 -04:00
3eddc018d9
split up test initialization code
☙◦ The Tablet ❀ GamerGirlandCo ◦❧
2025-07-17 14:35:42 -04:00
7e51ffbe82
add benchmarks and benchmark helpers
☙◦ The Tablet ❀ GamerGirlandCo ◦❧
2025-07-17 00:06:10 -04:00
74f32a5352
ensure that cfg.LogTo
is properly closed on disconnect if its underlying type is a file
☙◦ The Tablet ❀ GamerGirlandCo ◦❧
2025-07-16 23:52:41 -04:00
bb5d6e6db3
add AfterConnect
callback to pgx pool config
☙◦ The Tablet ❀ GamerGirlandCo ◦❧
2025-07-16 23:14:34 -04:00
33c47b2aa8
add some documentation
☙◦ The Tablet ❀ GamerGirlandCo ◦❧
2025-07-14 17:24:30 -04:00
d39dfb948b
add proper tests ✅
☙◦ The Tablet ❀ GamerGirlandCo ◦❧
2025-07-14 16:03:51 -04:00
cdcf886454
remove redundant test files
☙◦ The Tablet ❀ GamerGirlandCo ◦❧
2025-07-14 16:02:49 -04:00
c79c1f2c9a
add ability to configure ORM logging, log destination, and more
☙◦ The Tablet ❀ GamerGirlandCo ◦❧
2025-07-14 16:01:51 -04:00
01d912cac6
add proper query logging facility, powered by slog
☙◦ The Tablet ❀ GamerGirlandCo ◦❧
2025-07-14 15:59:43 -04:00
522ba3518b
the flower thrives! 🌸 ✨
☙◦ The Tablet ❀ GamerGirlandCo ◦❧
2025-07-18 16:39:50 -04:00
5c260f9740
🥀
☙◦ The Tablet ❀ GamerGirlandCo ◦❧
2025-07-05 23:08:40 -04:00
8e4b18c590
more scaffolding?
☙◦ The Tablet ❀ GamerGirlandCo ◦❧
2025-07-02 14:27:04 -04:00
486d5ee30f
hello again, universe~ 🌸
☙◦ The Tablet ❀ GamerGirlandCo ◦❧
2025-06-30 17:41:05 -04:00
13f3abe75d
so long, mongo, and thanks for all the fish 🫡
backup/main
☙◦ The Tablet ❀ GamerGirlandCo ◦❧
2025-06-30 16:58:18 -04:00
4f6d75f9d8
add existence-checking functionality to models
☙◦ The Tablet ❀ GamerGirlandCo ◦❧
2025-06-30 16:55:39 -04:00
f39e1b9c64
rename getColl
-> Collection
☙◦ The Tablet ❀ GamerGirlandCo ◦❧
2025-04-18 18:34:29 -04:00
a608ddd46d
add missing nil check to anonymous struct handling logic
☙◦ The Tablet ❀ GamerGirlandCo ◦❧
2025-04-18 18:31:51 -04:00
95b6e3f1bf
fix gridfs save/delete bugs
☙◦ The Tablet ❀ GamerGirlandCo ◦❧
2025-04-18 18:27:39 -04:00
6e865b733d
implement more bug fixes and improvements for populating deeply nested refs
☙◦ The Tablet ❀ GamerGirlandCo ◦❧
2025-04-11 23:05:14 -04:00
378b5d756a
fix nested refs not being recognized as "populated" during serialization
☙◦ The Tablet ❀ GamerGirlandCo ◦❧
2025-04-10 16:47:57 -04:00
0ebe3a2a3a
rework how references are found in Document.Populate
☙◦ The Tablet ❀ GamerGirlandCo ◦❧
2025-04-10 16:09:40 -04:00
f56df39be8
fix bug where result.Document.self != result
☙◦ The Tablet ❀ GamerGirlandCo ◦❧
2025-04-10 16:06:55 -04:00
510a126f4b
🌺
☙◦ The Tablet ❀ GamerGirlandCo ◦❧
2025-04-10 00:32:59 -04:00
c85efdc49f
improve json marshaling/unmarshaling
☙◦ The Tablet ❀ GamerGirlandCo ◦❧
2025-04-08 16:13:07 -04:00
40b754668d
rework Populate api
☙◦ The Tablet ❀ GamerGirlandCo ◦❧
2025-04-07 02:08:56 -04:00
5585634c83
nvm figured it out lol?
☙◦ The Tablet ❀ GamerGirlandCo ◦❧
2025-04-06 22:18:27 -04:00
4de1c20938
THIS DOESN'T WORK. but i need to commit
☙◦ The Tablet ❀ GamerGirlandCo ◦❧
2025-04-06 15:47:21 -04:00
1f9d32193f
add Count
function to Model begin work on tracking populated/unpopulated fields
☙◦ The Tablet ❀ GamerGirlandCo ◦❧
2025-04-05 23:28:34 -04:00
93b81308cb
improve id incrementing logic
☙◦ The Tablet ❀ GamerGirlandCo ◦❧
2025-04-01 18:48:14 -04:00
322d97dc95
implement recursive deletion for gridfs files when Delete()
is called on a document
☙◦ The Tablet ❀ GamerGirlandCo ◦❧
2025-04-01 18:45:36 -04:00
ad7c7f38af
replace ReplaceOne
with UpdateOne
☙◦ The Tablet ❀ GamerGirlandCo ◦❧
2025-03-27 19:58:43 -04:00
33af8ce8e7
allow nil opts
to be passed to Find*
model methods
☙◦ The Tablet ❀ GamerGirlandCo ◦❧
2025-03-27 17:36:51 -04:00
0a8f703eae
fix Model.typeName
being empty (!!)
☙◦ The Tablet ❀ GamerGirlandCo ◦❧
2025-03-27 17:34:09 -04:00
fbe65294c6
add another special case for handling datetimes during find* queries
☙◦ The Tablet ❀ GamerGirlandCo ◦❧
2025-03-27 16:34:46 -04:00
42954e8502
simplify conversion of bson.DateTime
s to time.Time
s in handleAnon
☙◦ The Tablet ❀ GamerGirlandCo ◦❧
2025-03-27 16:04:26 -04:00
d328bc3fbd
fix time.Time
fields not being saved
☙◦ The Tablet ❀ GamerGirlandCo ◦❧
2025-03-27 16:02:22 -04:00
11d31fbbc1
improve Save
api
☙◦ The Tablet ❀ GamerGirlandCo ◦❧
2025-03-27 00:12:19 -04:00
bb37212be7
fix doSave
calls to check if the document's ID is a zero value
☙◦ The Tablet ❀ GamerGirlandCo ◦❧
2025-03-26 23:25:44 -04:00
a44b9679aa
fix panic caused by unsafe slice-casting operation in model.go
☙◦ The Tablet ❀ GamerGirlandCo ◦❧
2025-03-26 21:36:54 -04:00
a91f4b6af8
fall back to not panicking if replication isn't enabled...
☙◦ The Tablet ❀ GamerGirlandCo ◦❧
2025-03-26 20:34:49 -04:00
325534a7d0
clarify in README that replication is required for autoincrementing IDs
☙◦ The Tablet ❀ GamerGirlandCo ◦❧
2025-03-26 20:33:43 -04:00
1c18fc2bf6
fix compile errors caused by mongo driver API changes
☙◦ The Tablet ❀ GamerGirlandCo ◦❧
2025-03-26 20:16:04 -04:00
8668e89991
update dependencies
☙◦ The Tablet ❀ GamerGirlandCo ◦❧
2025-03-25 17:13:29 -04:00
d66f9dd4aa
ensure that fields tagged with bson:"-"
are never considered during querying
☙◦ The Tablet ❀ GamerGirlandCo ◦❧
2025-03-25 16:20:24 -04:00
cd72703068
fix more infinite recursion when registering models
☙◦ The Tablet ❀ GamerGirlandCo ◦❧
2025-03-25 16:18:00 -04:00
e6a83d12e3
ensure we set each document's Model on find
☙◦ The Tablet ❀ GamerGirlandCo ◦❧
2025-03-25 16:11:31 -04:00
7fc4ed46c8
ensure that the internal model
field in the Document
struct is tagged with bson:"-"
☙◦ The Tablet ❀ GamerGirlandCo ◦❧
2025-03-25 16:23:06 -04:00
866a459855
fix infinite recursion in self-referential models
☙◦ The Tablet ❀ GamerGirlandCo ◦❧
2024-09-19 19:56:25 -04:00
8c559d5926
upgrade mongodb driver to 2.0 (may revert)
☙◦ The Tablet ❀ GamerGirlandCo ◦❧
2024-09-19 18:34:20 -04:00
64b9d1c241
huzzah for documentation!!! 🎉 🥳
☙◦ The Tablet ❀ GamerGirlandCo ◦❧
2024-09-14 18:13:21 -04:00
53e23bb52a
add Get
method to model registry
☙◦ The Tablet ❀ GamerGirlandCo ◦❧
2024-09-14 18:07:00 -04:00
15d032459a
remove tons of commented-out code, general cleanup
☙◦ The Tablet ❀ GamerGirlandCo ◦❧
2024-09-14 15:34:49 -04:00
f9aa34ef12
unexport Model fields
☙◦ The Tablet ❀ GamerGirlandCo ◦❧
2024-09-14 15:28:34 -04:00
9d791b1e3d
externalize more panic/error strings
☙◦ The Tablet ❀ GamerGirlandCo ◦❧
2024-09-14 15:20:17 -04:00
8b9720b70a
correct Pull method to break out of inner loop if a match is found
☙◦ The Tablet ❀ GamerGirlandCo ◦❧
2024-09-14 15:10:14 -04:00
fcd7cb2013
overhaul models to be more sensible by separating "instance" logic into a separate Document type ✨ 🪷
☙◦ The Tablet ❀ GamerGirlandCo ◦❧
2024-09-14 02:09:38 -04:00
bcf3985360
unignore go.sum, ignore go.work* files
☙◦ The Tablet ❀ GamerGirlandCo ◦❧
2024-09-12 23:18:53 -04:00
c2b45bfb36
update gitignore
☙◦ The Tablet ❀ GamerGirlandCo ◦❧
2024-09-12 19:32:11 -04:00
0d8ad2a356
make iti_single and iti_multi sample values into functions
☙◦ The Tablet ❀ GamerGirlandCo ◦❧
2024-09-12 18:29:12 -04:00
fd835efa46
[feat] add gridfs support! 🎉
☙◦ The Tablet ❀ GamerGirlandCo ◦❧
2024-09-12 18:10:03 -04:00
e018dad91e
update getNested utility to better handle slice fields
☙◦ The Tablet ❀ GamerGirlandCo ◦❧
2024-09-12 17:50:31 -04:00
5a8f2301fc
unexport fields in Query struct
☙◦ The Tablet ❀ GamerGirlandCo ◦❧
2024-09-12 17:48:45 -04:00
aa16700270
add test cases for chaining Query methods
☙◦ The Tablet ❀ GamerGirlandCo ◦❧
2024-09-12 17:38:15 -04:00
95bfdf7863
add getter for Model.typeName
☙◦ The Tablet ❀ GamerGirlandCo ◦❧
2024-09-12 17:25:01 -04:00
26101760cc
externalize error formats + strings
☙◦ The Tablet ❀ GamerGirlandCo ◦❧
2024-09-12 17:22:42 -04:00
4834dc5908
[instagram] add children of bodom as a testing band :]
☙◦ The Tablet ❀ GamerGirlandCo ◦❧
2024-09-12 17:20:17 -04:00
551d06fbe0
update getNested utility to better handle slice fields
☙◦ The Tablet ❀ GamerGirlandCo ◦❧
2024-09-12 17:15:04 -04:00
cd20d2c9eb
change Query.Model to a pointer
☙◦ The Tablet ❀ GamerGirlandCo ◦❧
2024-09-05 17:56:44 -04:00
4297071b3b
restructuring
☙◦ The Tablet ❀ GamerGirlandCo ◦❧
2024-09-05 17:53:04 -04:00
14ac93b327
rename model methods
☙◦ The Tablet ❀ GamerGirlandCo ◦❧
2024-09-05 14:29:35 -04:00
08ea2d9627
update go.mod
☙◦ The Tablet ❀ GamerGirlandCo ◦❧
2024-09-05 14:05:51 -04:00
fefa695063
some changes
☙◦ The Tablet ❀ GamerGirlandCo ◦❧
2024-09-05 13:57:35 -04:00
924b3fc9d2
many additions!
☙◦ The Tablet ❀ GamerGirlandCo ◦❧
2024-09-04 19:43:12 -04:00
b4b18680a8
remove some commented out code
☙◦ The Tablet ❀ GamerGirlandCo ◦❧
2024-09-03 13:21:44 -04:00
f721b32e01
refactor some things, add Delete method, improve Save method
☙◦ The Tablet ❀ GamerGirlandCo ◦❧
2024-09-03 00:14:12 -04:00
3f8fded6e5
add a new Append method to Model, handle misc errors, unexport some funcs + methods
☙◦ The Tablet ❀ GamerGirlandCo ◦❧
2024-09-02 19:32:39 -04:00
f46aab2f5f
hello world! 🌸
☙◦ The Tablet ❀ GamerGirlandCo ◦❧
2024-09-01 16:17:48 -04:00