Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

(Feature request) Other databases #832

Open
kamuridesu opened this issue Dec 24, 2024 · 6 comments
Open

(Feature request) Other databases #832

kamuridesu opened this issue Dec 24, 2024 · 6 comments
Labels
enhancement New feature or request

Comments

@kamuridesu
Copy link

Describe feature

Now that the project has changed from hands, I wonder if other databases like MySQL or PostgreSQL will be supported. This was discussed at zadam/trilium#174, where the author said he wouldn't add it because it would mean more work.

Additional Information

No response

@TC218
Copy link

TC218 commented Dec 24, 2024

The TriliumNext SQLite code can be refactored by using Sequelize, an ORM for modern Node.js:
https://github.com/sequelize/sequelize

  • and then it's easy to change underlying database

@eliandoran
Copy link
Contributor

eliandoran commented Dec 24, 2024

@TC218 , if you're willing to have a go at it, PRs are welcome.

On my side I don't expect to be working any time soon on this feature since I believe there are higher priority tasks soon such as supporting multiple SQLite database files and the work-benefit ratio is rather low.

@TC218
Copy link

TC218 commented Dec 24, 2024

@eliandoran not interested into that.

@kamuridesu why you need this feature ?

@kamuridesu
Copy link
Author

kamuridesu commented Dec 24, 2024

@TC218 I run trilium inside a Kubernetes cluster, so I have some options to setup it:

  1. Use a PersistentVolume and mount it to the pod, syncing the folder across all my nodes (that's what i'm doing rn)
  2. Mount a NFS storage to the pod
  3. Run the pod in a specific node only

None of those options are really great and as I do already have postgresql deployed with redundancy and backups it would take a lot less work to deploy trilium or make backups.

@shutaozhenzhen
Copy link

Also can we run trilium without any db, just pure folder and file?
Or have such a dir sync with db

@eliandoran
Copy link
Contributor

eliandoran commented Dec 25, 2024

@shutaozhenzhen , unfortunately that would not be possible. A lot of Trilium features relies on a database such as being able to place the same note into multiple directories, or reordering notes (workarounds can be found, but it would transform Trilium to the point it's a completely different application), or the search system.

@eliandoran eliandoran added the enhancement New feature or request label Dec 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

4 participants