A Lua library for interacting with timescaledb
| rockspecs | Release v0.1.0 | |
| LICENSE | Add license | |
| lua-timescaledb-scm-0.rockspec | Add readme.md | |
| readme.md | Release v0.1.0 | |
| timescaledb.lua | Initial Commit | |
lua-timescaledb
A Lua library for interacting with timescaledb
Installation
> luarocks install lua-timescaledb
Usage
For the full postgres connection syntax see luasql-postgres.
-- connect to a postgres database that has the timescaledb extension installed:
local tsdb = require 'timescaledb' ('<my-postgres-database-name>', 'psql://...')
-- insert some timeseries data (now):
tsdb:insert({ temperature = 21.5, door_open = false })
-- insert more timeseries data (5 minutes ago):
local past = os.time() - 60 * 5
tsdb:insert(past, { temperature = 15.4 })
License Information
This library is licensed under the MIT license.
Changelog
v0.1.0 [2026年03月03日]
- Initial Library Version
Created by Lesosoftware in 2026