Title: Variable context support · Issue #48 · Query-farm/httpserver · GitHub
Open Graph Title: Variable context support · Issue #48 · Query-farm/httpserver
X Title: Variable context support · Issue #48 · Query-farm/httpserver
Description: The httpserver not seems to be aware of variables that were set (in the session?), returning NULLs. An example use case where this would be handy is when you'd like to run a cronjob (using that extension) inside a running httpserver inst...
Open Graph Description: The httpserver not seems to be aware of variables that were set (in the session?), returning NULLs. An example use case where this would be handy is when you'd like to run a cronjob (using that ext...
X Description: The httpserver not seems to be aware of variables that were set (in the session?), returning NULLs. An example use case where this would be handy is when you'd like to run a cronjob (using that...
Opengraph URL: https://github.com/Query-farm/httpserver/issues/48
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Variable context support","articleBody":"The httpserver not seems to be aware of variables that were set (in the session?), returning NULLs.\n\nAn example use case where this would be handy is when you'd like to run a cronjob (using that extension) inside a running httpserver instance regularly (for example to update a table daily which is then served over the httpserver API.\n\nThe goal would to be able to have a statement like running:\n\n```sql\nselect cron('create or replace table hr_today as (from read_csv_auto(getvariable(''hr_today_filepath'')))', '0 0 0 8 * *');\n```\nCould it be that when httpserver starts, some process or thread is forked and the variables set when the server starts (in an init.sql script) is not \"brought along\" and therefore lost? Currently it seems variables that are set are blanked out when the server is running and just return NULL.\n\nPerhaps some change similar to https://github.com/Query-farm/cronjob/pull/6/commits/5eed5fdc08a2267aba3b9fb9b4fc8124266550e2 might be able to alleviate this?","author":{"url":"https://github.com/mskyttner","@type":"Person","name":"mskyttner"},"datePublished":"2025-10-23T09:58:18.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/48/httpserver/issues/48"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:4096221c-a57d-1a09-303b-aef03dbde40e |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | E248:2D598:B0A28:EF581:6981C1EB |
| html-safe-nonce | 8aaa9dc2aefae21c961ca3be5fd0699cfd2258b38a8e53dc70fbf6f050a82637 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFMjQ4OjJENTk4OkIwQTI4OkVGNTgxOjY5ODFDMUVCIiwidmlzaXRvcl9pZCI6IjYwNDI2OTM3MjUwNzM4MTgwOTEiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | f7ca6db0ddef426b55a853b2c40a350de95cd1433af5512858015a04066f7cec |
| hovercard-subject-tag | issue:3543984595 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/Query-farm/httpserver/48/issue_layout |
| twitter:image | https://opengraph.githubassets.com/a28930917f69864091ff1e6e52480c8b8fd36539f5c71aabbbc6aa6eeb66c19c/Query-farm/httpserver/issues/48 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/a28930917f69864091ff1e6e52480c8b8fd36539f5c71aabbbc6aa6eeb66c19c/Query-farm/httpserver/issues/48 |
| og:image:alt | The httpserver not seems to be aware of variables that were set (in the session?), returning NULLs. An example use case where this would be handy is when you'd like to run a cronjob (using that ext... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | mskyttner |
| hostname | github.com |
| expected-hostname | github.com |
| None | e137814e266030874fd2c86863529d0622b13889eeda04148c57654b6ea84ad6 |
| turbo-cache-control | no-preview |
| go-import | github.com/Query-farm/httpserver git https://github.com/Query-farm/httpserver.git |
| octolytics-dimension-user_id | 183420031 |
| octolytics-dimension-user_login | Query-farm |
| octolytics-dimension-repository_id | 869750358 |
| octolytics-dimension-repository_nwo | Query-farm/httpserver |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 869750358 |
| octolytics-dimension-repository_network_root_nwo | Query-farm/httpserver |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 6be0b67eaa5007447f7efac54feabf8efa3e0840 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width