{"id":13779976,"url":"https://github.com/hoelzro/sqlite-lua-extension","last_synced_at":"2025-05-05T21:33:59.427Z","repository":{"id":4799528,"uuid":"5952605","full_name":"hoelzro/sqlite-lua-extension","owner":"hoelzro","description":"A SQLite extension that embeds a Lua interpreter into SQLite","archived":false,"fork":false,"pushed_at":"2020-06-20T18:28:47.000Z","size":5,"stargazers_count":19,"open_issues_count":0,"forks_count":1,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-03-30T23:51:11.360Z","etag":null,"topics":["lua","sqlite"],"latest_commit_sha":null,"homepage":null,"language":"C","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/hoelzro.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"COPYING","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2012-09-25T16:06:25.000Z","updated_at":"2023-10-11T14:12:02.000Z","dependencies_parsed_at":"2022-07-21T12:32:15.074Z","dependency_job_id":null,"html_url":"https://github.com/hoelzro/sqlite-lua-extension","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hoelzro%2Fsqlite-lua-extension","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hoelzro%2Fsqlite-lua-extension/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hoelzro%2Fsqlite-lua-extension/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hoelzro%2Fsqlite-lua-extension/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hoelzro","download_url":"https://codeload.github.com/hoelzro/sqlite-lua-extension/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252580096,"owners_count":21771262,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["lua","sqlite"],"created_at":"2024-08-03T18:01:11.093Z","updated_at":"2025-05-05T21:33:59.383Z","avatar_url":"https://github.com/hoelzro.png","language":"C","readme":"# SQLite-Lua - Lua extension for SQLite\n\nThis SQLite extension embeds a Lua interpeter into SQLite, so you can execute Lua code in your\nSQL statements.\n\n# Examples\n\n## Executing Lua code\n\n```sql\n  select lua('print \"hi\"');\n```\n\n## Getting data from Lua\n\n```sql\n  select lua('return math.random(1, 10)');\n```\n\nSince the 'return' is annoying to type and is easy to forget,\nthe extension automatically prepends a 'return' if it doesn't result in a syntax\nerror:\n\n```sql\n  select lua('math.random(1, 10)') -- same as above\n```\n\nReturning values of a type that doesn't have a sensible equivalent in SQLite (tables, functions,\nuserdata, and coroutines) causes an error.\n\nReturned booleans are converted into integers.\n\n## Passing data to Lua\n\nValues passed after the Lua statement are passed into the Lua chunk via a table named arg:\n\n```sql\n  select lua('arg[1] ** 2', value) from values; -- squares values\n```\n\nI may introduce a \"nicer\" syntax for this in the future.\n","funding_links":[],"categories":["C","Extensions"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhoelzro%2Fsqlite-lua-extension","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhoelzro%2Fsqlite-lua-extension","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhoelzro%2Fsqlite-lua-extension/lists"}