Skip to content

Nginx variables support in tnt_* directives #112

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

Open
ja1cap opened this issue Jan 12, 2018 · 0 comments
Open

Nginx variables support in tnt_* directives #112

ja1cap opened this issue Jan 12, 2018 · 0 comments
Assignees

Comments

@ja1cap
Copy link

ja1cap commented Jan 12, 2018

Please add ngx variables support support in directives:

  • tnt_insert
  • tnt_replace
  • tnt_delete
  • tnt_select
  • tnt_update
  • tnt_upsert

Example

set $app_space_id 512;
set $app_space_index_id 0;
set $app_select_offset 0;
set $app_select_limit 100;
set $app_select_it "eq"';
set $app_select_format "key=%s&it=%%it";
location /select {
  tnt_pure_result on;
  tnt_select $app_space_id $app_space_index_id $app_select_offset $app_select_limit $app_select_it $app_select_format;
  tnt_pass tnt;
}
@dedok dedok self-assigned this Jan 12, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants