Composing adapters? #586
-
Hello! I've been following the trustfall project for quite some time, and have recently been considering writing some adapters for a set of problems I have. To keep it short, I have a number of databases and APIs that are currently connect using various scripts and ad-hoc programs, and I would like to convert these scripts into trustfall queries. This seems to be exactly what trustfall was made for. Now, here is my issue: I've been looking at the Instead would prefer a project structure where a bunch of distinct trustfall adapters can communicate using a set of "integration points". To take the canoncal HYTRADBOI example, I would imagine a HackerNews adapter that has a I've been looking at #481 as a possible solution. I would move my "integration vertices" into a separate crate that all adapters can depend on, and then implement |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
That is indeed exactly what Trustfall is made for! I'm thrilled you're considering using it for that. I'd love to hear more about your use case!
This sort of composition is exactly what #481 was meant to allow, and I've prototyped some code in that direction — enough to know what you describe is certainly possible. But I'm worried about maintainability, since such a large feature needs to be exhaustively tested and will invariably get a lot of use once it's available — probably even commercial use, based on what I've heard. As a solo maintainer, I'm not in a position to offer free support for commercial companies' use of such a maintenance-intensive feature, so I've been a bit hesitant to publish the work I've done on that until I can figure out a good way to mitigate that risk and the associated risk of burnout for me. If I get burned out from an overwhelming support burden at a "free" price point, it'd be a lose-lose for everyone. This sort of thing has happened to other projects in the past, so it's not a theoretical risk and it would be irresponsible of me to not take it seriously. |
Beta Was this translation helpful? Give feedback.
That is indeed exactly what Trustfall is made for! I'm thrilled you're considering using it for that.
I'd love to hear more about your use case!
This sort of composition is exactly what #481 was meant to allow, and I've prototyped some code in that direction — enough to know what you describe is certainly possible. But I'm worried about maintainability, since such a large feature needs to be exhaustively tested and will invariably get a lot of use once it's a…