borkdude / plsci

PostgreSQL procedural language handler for Clojure via SCI
Eclipse Public License 1.0
49 stars 3 forks source link

Create procedural language handler #1

Open borkdude opened 3 years ago

borkdude commented 3 years ago

@eeeebbbbrrrr said:

next you need to make a procedural language handler. You're free to use my not-yet-released pl/rust as a starting point: https://github.com/zombodb/plrust

eeeebbbbrrrr commented 3 years ago

https://github.com/borkdude/sci/issues/373#issuecomment-757755481

That's what pl/rust does automatically, as it uses pgx.

Considering what you've done so far is simply a string evaluation, it wouldn't be hard at all to take the function argument datums and convert them to strings and inject them in the function source where they should go.

borkdude commented 3 years ago

@eeeebbbbrrrr Ooh, that actually sounds not hard at all... What about the return type of eval_string?