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

feat(desktop): implement SQLite database integration with Drizzle ORM #1820

Merged
merged 2 commits into from
Dec 2, 2024

Conversation

Red-Asuka
Copy link
Member

This pull request introduces a SQLite database integration using Drizzle ORM for the desktop application. The changes include configuration updates, new database schema definitions, and modifications to various files to support database operations.

Database Integration:

  • Added drizzle.config.ts for Drizzle ORM configuration.
  • Created db.main.ts and db.renderer.ts to set up the database and handle database operations. [1] [2]
  • Defined a new database schema in posts.ts.

Configuration Updates:

  • Updated .gitignore to ignore database files.
  • Modified package.json to include new scripts and dependencies for SQLite and Drizzle ORM. [1] [2] [3]

Code Modifications:

  • Updated index.ts to handle database execution and migration on app readiness. [1] [2] [3] [4]
  • Changed preload/index.ts to expose a custom API for database execution.

Frontend Integration:

  • Updated settings.vue to insert and display mock data from the database.

TypeScript Configuration:

  • Modified tsconfig.node.json and tsconfig.web.json to include new database files. [1] [2]

@Red-Asuka Red-Asuka added refactor Refactor code or architecture desktop MQTTX Desktop labels Nov 27, 2024
@Red-Asuka Red-Asuka added this to the v2.0.0-alpha.1 milestone Nov 27, 2024
@Red-Asuka Red-Asuka self-assigned this Nov 27, 2024
@ysfscream ysfscream merged commit 980419c into dev/2.0.0 Dec 2, 2024
5 checks passed
@ysfscream ysfscream deleted the lyd/2.0.0 branch December 2, 2024 01:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
desktop MQTTX Desktop refactor Refactor code or architecture
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

2 participants