1
0
Fork
You've already forked lua-timescaledb
0
A Lua library for interacting with timescaledb
  • Lua 100%
2026年03月03日 15:46:07 +01:00
rockspecs Release v0.1.0 2026年03月03日 15:46:07 +01:00
LICENSE Add license 2026年03月03日 15:34:25 +01:00
lua-timescaledb-scm-0.rockspec Add readme.md 2026年03月03日 15:43:59 +01:00
readme.md Release v0.1.0 2026年03月03日 15:46:07 +01:00
timescaledb.lua Initial Commit 2025年08月27日 20:36:51 +02:00

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