Advertisement
Guest User

Untitled

a guest
Jun 19th, 2023
30
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.47 KB | None | 0 0
  1.  
  2.  
  3. #(symbols 'sql 'pico)
  4. (setq *Sqlite_postfix ";\n.read ./in")
  5.  
  6. (class +Sql)
  7. (dm T (Fn)
  8. (call 'mkfifo "in" "out") # this is from the point of view of the app being automated, not from the pil perspective
  9. (push '*Bye '(call 'rm "in" "out"))
  10. (=: Fd (pipe (exec "./start_sqlite.sh")))
  11. (task (: Fd) (prinl (in (: Fd))))
  12. )
  13. (dm q> (QueryStr)
  14. (prinl (: Fd))
  15. (out (: Fd) (pack QueryStr sqlite_postfix))
  16. (flush)
  17. )
  18. (setq x (new '(+Sql) "db"))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement