An open API service indexing awesome lists of open source software.

https://github.com/perrywerneck/udjat-module-sqlite

SQLite module for libudjat
https://github.com/perrywerneck/udjat-module-sqlite

Last synced: 11 months ago
JSON representation

SQLite module for libudjat

Awesome Lists containing this project

README

          

# SQLite database module for udjat

Allow storing url based alerts in a sqlite database to avoid missing then in case of a network or server failure.

[![License: GPL v3](https://img.shields.io/badge/License-GPL%20v3-blue.svg)](https://www.gnu.org/licenses/gpl-3.0)
![CodeQL](https://github.com/PerryWerneck/udjat-module-sqlite/workflows/CodeQL/badge.svg?branch=master)
[![build result](https://build.opensuse.org/projects/home:PerryWerneck:udjat/packages/udjat-module-sqlite/badge.svg?type=percent)](https://build.opensuse.org/package/show/home:PerryWerneck:udjat/udjat-module-sqlite)

## Using agent

### Examples

[Udjat](../../../udjat) service configuration to store an [user module](../../../udjat-module-users) alert on sqlite database:

```xml












create table if not exists alerts (id integer primary key, inserted timestamp default CURRENT_TIMESTAMP, url text, action text, payload text)



insert into alerts (url,action,payload) values (?,?,?)


select id,url,action,payload from alerts limit 1



delete from alerts where id=?


select count (*) from alerts






{"user":"${username}","macaddress":"${macaddress}"}


```