{"id":19011490,"url":"https://github.com/perrywerneck/udjat-module-sqlite","last_synced_at":"2025-07-31T09:40:36.370Z","repository":{"id":41828597,"uuid":"476678117","full_name":"PerryWerneck/udjat-module-sqlite","owner":"PerryWerneck","description":"SQLite module for libudjat","archived":false,"fork":false,"pushed_at":"2024-01-30T10:46:45.000Z","size":107,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-21T15:51:34.219Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/PerryWerneck.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG","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-04-01T10:38:24.000Z","updated_at":"2024-07-12T13:06:35.000Z","dependencies_parsed_at":"2024-01-12T23:12:58.034Z","dependency_job_id":"fc62971f-2d98-4aab-8453-25843939d207","html_url":"https://github.com/PerryWerneck/udjat-module-sqlite","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/PerryWerneck/udjat-module-sqlite","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PerryWerneck%2Fudjat-module-sqlite","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PerryWerneck%2Fudjat-module-sqlite/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PerryWerneck%2Fudjat-module-sqlite/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PerryWerneck%2Fudjat-module-sqlite/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/PerryWerneck","download_url":"https://codeload.github.com/PerryWerneck/udjat-module-sqlite/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PerryWerneck%2Fudjat-module-sqlite/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":268017357,"owners_count":24181669,"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","status":"online","status_checked_at":"2025-07-31T02:00:08.723Z","response_time":66,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":[],"created_at":"2024-11-08T19:14:38.868Z","updated_at":"2025-07-31T09:40:36.310Z","avatar_url":"https://github.com/PerryWerneck.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# SQLite database module for udjat\n\nAllow storing url based alerts in a sqlite database to avoid missing then in case of a network or server failure.\n\n[![License: GPL v3](https://img.shields.io/badge/License-GPL%20v3-blue.svg)](https://www.gnu.org/licenses/gpl-3.0)\n![CodeQL](https://github.com/PerryWerneck/udjat-module-sqlite/workflows/CodeQL/badge.svg?branch=master)\n[![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)\n\n## Using agent\n\n### Examples\n\n[Udjat](../../../udjat) service configuration to store an [user module](../../../udjat-module-users) alert on sqlite database:\n\n```xml\n\u003c?xml version=\"1.0\" encoding=\"UTF-8\" ?\u003e\n\u003cconfig log-debug='yes' log-trace='yes'\u003e\n\n\t\u003c!-- The HTTP module implements the http client backend --\u003e\n\t\u003cmodule name='http' required='yes' /\u003e\n\t\n\t\u003c!-- Implements user's monitor --\u003e\n\t\u003cmodule name='users' required='yes' /\u003e\n\t\n\t\u003c!-- Load SQLite module --\u003e\n\t\u003cmodule name='sqlite' required='yes' dbname='alerts.db' /\u003e\t\n\n\t\u003c!-- Create 'sqlite+' url filter, setup database --\u003e\n\t\u003csql name='sqlite' type='url-scheme' retry-interval='14400' update-timer='14400'\u003e\n\t\n\t\t\u003cinit\u003e\n\t\t\tcreate table if not exists alerts (id integer primary key, inserted timestamp default CURRENT_TIMESTAMP, url text, action text, payload text)\n\t\t\u003c/init\u003e\n\t\t\n\t\t\u003cinsert\u003e\n\t\t\tinsert into alerts (url,action,payload) values (?,?,?)\n\t\t\u003c/insert\u003e\n\n\t\t\u003cselect\u003e\n\t\t\tselect id,url,action,payload from alerts limit 1\n\t\t\u003c/select\u003e\n\t\t\n\t\t\u003cdelete\u003e\n\t\t\tdelete from alerts where id=?\n\t\t\u003c/delete\u003e\n\n\t\t\u003cpending\u003e\n\t\t\tselect count (*) from alerts\n\t\t\u003c/pending\u003e\n\n\t\u003c/sql\u003e\n\t\n\t\u003c!-- Declare an user monitor agent --\u003e\n\t\u003cusers name='users' update-timer='60'\u003e\n\n\t\t\u003c!-- The URL is prefixed with 'sqlite+' to be stored on database --\u003e\n\t\t\u003calert name='logout' event='logout' max-retries='1' action='post' url='sqlite+http://localhost'\u003e\n\t\t\t{\"user\":\"${username}\",\"macaddress\":\"${macaddress}\"}\n\t\t\u003c/alert\u003e\n\n\t\u003c/users\u003e\n\t\n\u003c/config\u003e\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fperrywerneck%2Fudjat-module-sqlite","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fperrywerneck%2Fudjat-module-sqlite","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fperrywerneck%2Fudjat-module-sqlite/lists"}