{"id":37126186,"url":"https://github.com/winteryukky/aws-lambda-sql-runtime","last_synced_at":"2026-01-14T14:35:03.974Z","repository":{"id":38039937,"uuid":"468009590","full_name":"WinterYukky/aws-lambda-sql-runtime","owner":"WinterYukky","description":"Execute SQL on AWS Lambda","archived":false,"fork":false,"pushed_at":"2024-02-02T17:56:42.000Z","size":521,"stargazers_count":0,"open_issues_count":2,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-09-01T12:44:24.471Z","etag":null,"topics":["aws-lambda","sql"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/WinterYukky.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-03-09T16:36:37.000Z","updated_at":"2022-03-10T14:14:39.000Z","dependencies_parsed_at":"2023-02-18T13:40:31.743Z","dependency_job_id":"ff6d1ffa-3c29-4500-9efc-783b405108e3","html_url":"https://github.com/WinterYukky/aws-lambda-sql-runtime","commit_stats":{"total_commits":33,"total_committers":3,"mean_commits":11.0,"dds":0.3939393939393939,"last_synced_commit":"93fa786b7915021e07dfa821fe939c2d4a52fce1"},"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/WinterYukky/aws-lambda-sql-runtime","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WinterYukky%2Faws-lambda-sql-runtime","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WinterYukky%2Faws-lambda-sql-runtime/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WinterYukky%2Faws-lambda-sql-runtime/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WinterYukky%2Faws-lambda-sql-runtime/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/WinterYukky","download_url":"https://codeload.github.com/WinterYukky/aws-lambda-sql-runtime/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WinterYukky%2Faws-lambda-sql-runtime/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28423676,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-14T13:30:50.153Z","status":"ssl_error","status_checked_at":"2026-01-14T13:29:08.907Z","response_time":107,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["aws-lambda","sql"],"created_at":"2026-01-14T14:35:03.112Z","updated_at":"2026-01-14T14:35:03.963Z","avatar_url":"https://github.com/WinterYukky.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# AWS Lambda SQL Runtime\n\nThis is one of the AWS Lambda crazy runtime series that can execute SQL on AWS Lambda.\n\n[![test status](https://github.com/WinterYukky/aws-lambda-sql-runtime/actions/workflows/test.yml/badge.svg?branch=main \"test status\")](https://github.com/WinterYukky/aws-lambda-sql-runtime/actions)\n[![MIT license](https://img.shields.io/badge/license-MIT-brightgreen.svg)](https://opensource.org/licenses/MIT)\n\n![execute image](./assets/aws-lambda-sql-runtime-example.gif)\n\n## Install\n\n1. Download `runtime.zip` from latest release.\n1. Upload `runtime.zip` as Lambda layer to AWS Lambda.\n1. Add the layer to your lambda function.\n\n## Example\n\n### Hello World\n\nThis runtime returns last query result as json.\nNext code is simple example.\n\n```sql\nSELECT\n    200 statusCode,\n    'Hello from SQL runtime!' body;\n```\n\nThe SQL returns this response.\n\n```json\n{\n  \"body\": \"Hello from SQL runtime!\",\n  \"statusCode\": 200\n}\n```\n\n### Logging\n\n`print` function logging and return the argument.\nNext code is example of using `print`.\n\n```sql\nSELECT print('Hello from SQL runtime!');\n```\n\nThe SQL output this log.\n\n```log\nSTART RequestId: xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx Version: $LATEST\nHello from SQL runtime!\nEND RequestId: xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx\nREPORT RequestId: xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx\tDuration: 109.83 ms\tBilled Duration: 203 ms\tMemory Size: 128 MB\tMax Memory Used: 24 MB\tInit Duration: 93.02 ms\t\n```\n\n### Event\n\n`event` function returns the event value of argument key.\nNext code is example of using `event`.\n\n```sql\nSELECT print(event(''));\nSELECT event('key1') key1, event('key2') key2; \n```\n\n`event json`\n\n```json\n{\n  \"key1\": \"value1\",\n  \"key2\": \"value2\",\n  \"key3\": \"value3\"\n}\n```\n\nThe SQL returns this response.\n\n```json\n{\n  \"key1\": \"value1\",\n  \"key2\": \"value2\"\n}\n```\n\nAnd output this log.\n\n```log\nSTART RequestId: xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx Version: $LATEST\n{\"key1\":\"value1\",\"key2\":\"value2\",\"key3\":\"value3\"}\nEND RequestId: xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx\nREPORT RequestId: xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx\tDuration: 133.09 ms\tBilled Duration: 222 ms\tMemory Size: 128 MB\tMax Memory Used: 24 MB\tInit Duration: 88.90 ms\t\n```\n\n## Note\nThis runtime executes queries every semicolon so when appear semicolon in quote string or comments then this runtime not works.\nIt also doesn't work if the comment appears after the last query.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwinteryukky%2Faws-lambda-sql-runtime","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwinteryukky%2Faws-lambda-sql-runtime","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwinteryukky%2Faws-lambda-sql-runtime/lists"}