Get raw sqlite3 connection pointer? #2829
Replies: 1 comment 9 replies
-
Can you give an concrete example what exactly is missing for you and what would be required to have as much support in diesel to support your use case in a safe way. Diesel provides already a lot of foundational building blocks that should allow you to add a lot of extension functionality by using the extensions points (custom sql functions, custom type defs, query dsl extensions, …) in third party crates. See also #1640 for a past proposal. That all written: If someone proposes an interface that holds up all the invariants that need to meet for the required unsafe code in implementation we can talk about that. Otherwise I see that more as something that does not fit that well in diesels API design, as we provide a completely safe API. |
Beta Was this translation helpful? Give feedback.
-
Can we get a function to get the raw
*mut sqlite3
behind a connection?Ok, what I really want is a way to make an FTS5 tokenizer in diesel. But frankly, sqlite has a lot of extensions and I don't think diesel is going to implement them all (or if it will, it will be a bit). Getting the pointer is an easy way for users to utilize the extensions they need to.
Beta Was this translation helpful? Give feedback.
All reactions