[PR #28] [MERGED] Adding SQLite support #1208

Closed
opened 2025-12-29 02:29:13 +01:00 by adam · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/juanfont/headscale/pull/28
Author: @juanfont
Created: 5/15/2021
Status: Merged
Merged: 5/18/2021
Merged by: @juanfont

Base: mainHead: sqlite-support-plus-integration


📝 Commits (10+)

  • 216c6d8 Added support for sqlite as database backend
  • da9a07d Added tests for the sqlite-based config
  • 0b8d4a2 minor update to gitignore
  • 93a9284 Updated README with sqlite instructions
  • 374a6ee Fixed panic when sending keep alives to a disconnected node
  • 370fe3b Removed wrongly copypasted method
  • 13b7b3e Fix tests
  • b0adefc Remove trailing space
  • 460a23c Check for abs/rel path in db_path
  • 5a42bac Use OS-independent paths for the abs method

📊 Changes

9 files changed (+84 additions, -13 deletions)

View changed files

📝 .gitignore (+1 -0)
📝 README.md (+7 -2)
📝 api.go (+2 -0)
📝 app.go (+17 -4)
📝 cmd/headscale/cli/utils.go (+4 -2)
📝 cmd/headscale/headscale_test.go (+37 -4)
📝 config.json.postgres.example (+2 -1)
config.json.sqlite.example (+13 -0)
📝 db.go (+1 -0)

📄 Description

This WIP PR adds SQLite support in preparation for the integration tests, as described in https://github.com/juanfont/headscale/pull/25#issuecomment-837643844.

Both Postgres and SQLite will remain supported.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/juanfont/headscale/pull/28 **Author:** [@juanfont](https://github.com/juanfont) **Created:** 5/15/2021 **Status:** ✅ Merged **Merged:** 5/18/2021 **Merged by:** [@juanfont](https://github.com/juanfont) **Base:** `main` ← **Head:** `sqlite-support-plus-integration` --- ### 📝 Commits (10+) - [`216c6d8`](https://github.com/juanfont/headscale/commit/216c6d85b2cb1b8df0156cbafda9a4a29518f9d0) Added support for sqlite as database backend - [`da9a07d`](https://github.com/juanfont/headscale/commit/da9a07ddf3ec0e84dbb7d6b702192d111a983b44) Added tests for the sqlite-based config - [`0b8d4a2`](https://github.com/juanfont/headscale/commit/0b8d4a24ae46e9948d6354f4c4d9d6bc174ee200) minor update to gitignore - [`93a9284`](https://github.com/juanfont/headscale/commit/93a9284d848553e8a017c7113334250f3c5ae2ed) Updated README with sqlite instructions - [`374a6ee`](https://github.com/juanfont/headscale/commit/374a6eef7e1375ad9665a29ef384d39a0bd21a65) Fixed panic when sending keep alives to a disconnected node - [`370fe3b`](https://github.com/juanfont/headscale/commit/370fe3b19253d8640fa258ff4d711eec5cf74019) Removed wrongly copypasted method - [`13b7b3e`](https://github.com/juanfont/headscale/commit/13b7b3ee8a2a73a5164b2caf685b58e9646bf72a) Fix tests - [`b0adefc`](https://github.com/juanfont/headscale/commit/b0adefc540c4549a3d857e59a25e771ab88383a2) Remove trailing space - [`460a23c`](https://github.com/juanfont/headscale/commit/460a23cf2ba5da2ab809104f7316e159d06502ce) Check for abs/rel path in db_path - [`5a42bac`](https://github.com/juanfont/headscale/commit/5a42bace67d1c00f2d5d4dcfcccddd14a320a804) Use OS-independent paths for the abs method ### 📊 Changes **9 files changed** (+84 additions, -13 deletions) <details> <summary>View changed files</summary> 📝 `.gitignore` (+1 -0) 📝 `README.md` (+7 -2) 📝 `api.go` (+2 -0) 📝 `app.go` (+17 -4) 📝 `cmd/headscale/cli/utils.go` (+4 -2) 📝 `cmd/headscale/headscale_test.go` (+37 -4) 📝 `config.json.postgres.example` (+2 -1) ➕ `config.json.sqlite.example` (+13 -0) 📝 `db.go` (+1 -0) </details> ### 📄 Description This WIP PR adds SQLite support in preparation for the integration tests, as described in https://github.com/juanfont/headscale/pull/25#issuecomment-837643844. Both Postgres and SQLite will remain supported. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
adam added the pull-request label 2025-12-29 02:29:13 +01:00
adam closed this issue 2025-12-29 02:29:13 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/headscale#1208