-
I'm wondering if there's a way to have Pre/Post hooks for a number of things. For example, for long-lived applications SQLite recommends running with The first thing I can achieve by adding it as an Similarly, for instrumenting the library it would be very handy to have Pre/Post hooks for It seems right now I would have to wrap the |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 13 replies
-
This is something I have thought a bit about. Being forthcoming, in 8d450f8 I dropped the I support I also added Neither To be perfectly honest, I don't use this much in "super serious business" 😉, and I have no idea what the common solutions are in this place? I haven't seen what other drivers (even outside SQLite, PostgreSQL, etc) offer in this space. |
Beta Was this translation helpful? Give feedback.
-
Maybe I just need to wrap this? |
Beta Was this translation helpful? Give feedback.
-
I also found these: |
Beta Was this translation helpful? Give feedback.
-
I should've prefaced, this wasn't for GoTosocial, sorry about that. I'm also using this in some personal projects. For GtS, our ORM (Bun) has pre/post hooks for just about any action so we can do telemetry and other stuff that way. And since we wrap it anyway then we end up being able to hook For my own projects, I'm using this library directly, no ORMs involved and no |
Beta Was this translation helpful? Give feedback.
See #125. @daenney