Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Curious, I didn't find how to add another data source in the talk at the top of the README[1]. Do you mind sharing the demo you saw?

[1]: https://www.hytradboi.com/2022/how-to-query-almost-everythin...



I bumped into him and showed it to him in person one time :)

Realistically, the docs are still very sparse -- I wasn't planning on posting this for another few months, but someone else noticed my project and beat me to it!

New data providers need a schema and an Adapter implementation.

For Rust, this is the Adapter trait that data providers need to implement: https://docs.rs/trustfall_core/latest/trustfall_core/interpr...

This is the equivalent abstract class in Python: https://github.com/obi1kenobi/trustfall/blob/pytrustfall-v0....

For Python, the package docs have some (underwhelming) additional examples of building a schema and passing an adapter to use to run a query: https://pypi.org/project/trustfall/

The process in Rust is equivalent, here's the code powering the demo in the talk: https://github.com/obi1kenobi/trustfall/blob/main/demo-hytra...

I realize this is all extremely suboptimal, but like I said, I wasn't ready Please stay tuned! I'm planning to spruce all of this up in the coming weeks!




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: