- 
                Notifications
    
You must be signed in to change notification settings  - Fork 1
 
Support v2 "async" transactions returning multipart Arrow responses #17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Part 1: WIP basic GET/PUT calls for the v2 API.
        
          
                src/api.jl
              
                Outdated
          
        
      | # todo: when we have async transactions, add a variation that dispatches and | ||
| # waits .. consider creating two entry points for readonly and readwrite. | ||
| 
               | 
          ||
| function exec_v2(ctx::Context, database::AbstractString, engine::AbstractString, source; inputs = nothing, readonly = false, kw...) | 
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
change to RAI.V2.exec?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍 but actually: i think this package is so early days, i'd rather just call this one exec, and rename the v1 exec to something else, maybe RAI.V1.exec or RAI.exec_v1!
(Or actually, naming this one exec_async() and then having one more wrapper called exec() that does the polling)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For now i'm going to rename this to exec_async(), based on the above, i think.
* Add support for v1_inputs to v2-style exec :) * Adjust to latest /problems endpoint implementation from frontend * Better comment + version patch on parse_multipart_form
```bash
$ julia --proj examples/exec_async.jl "nhd-test-1" "nhd-s" "def x = 1 def x = x+1 def output = x"
Transaction is created...
JSON3.Object{Vector{UInt8}, Vector{UInt64}} with 2 entries:
  :id => "c616a8ae-3be2-0d51-fb0e-b7f862bc367d"
  :state => "CREATED"
```
    | 
           Thanks Pete! :)  | 
    
Uh oh!
There was an error while loading. Please reload this page.