lzdyes / tauri-plugin-sqlite Goto Github PK
View Code? Open in Web Editor NEWA Tauri plugin for interface to SQLite
License: MIT License
A Tauri plugin for interface to SQLite
License: MIT License
I've added this in Cargo.toml:
[dependencies.tauri-plugin-sqlite]
git = "https://github.com/lzdyes/tauri-plugin-sqlite"
tag = "v0.1.1"
error: failed to select a version for `sqlite3-src`.
... required by package `sqlite3-sys v0.13.0`
... which satisfies dependency `sqlite3-sys = "^0.13"` of package `sqlite v0.26.0`
... which satisfies dependency `sqlite = "^0.26.0"` of package `tauri-plugin-sqlite v0.1.0 (https://github.com/lzdyes/tauri-plugin-sqlite?tag=v0.1.1#3d09a5a9)`
... which satisfies git dependency `tauri-plugin-sqlite` of package `pw-manager_db v0.0.0 (E:\Visual Studio Code\Rust\Rust Saves\Tauri Apps\pw-manager_db\src-tauri)`
versions that meet the requirements `^0.3` are: 0.3.0
the package `sqlite3-src` links to the native library `sqlite3`, but it conflicts with a previous package which links to `sqlite3` as well:
package `libsqlite3-sys v0.26.0`
... which satisfies dependency `libsqlite3-sys = "^0.26.0"` (locked to 0.26.0) of package `rusqlite v0.29.0`
... which satisfies dependency `rusqlite = "^0.29.0"` (locked to 0.29.0) of package `pw-manager_db v0.0.0 (E:\Visual Studio Code\Rust\Rust Saves\Tauri Apps\pw-manager_db\src-tauri)`
Only one package in the dependency graph may specify the same links value. This helps ensure that only one copy of a native library is linked in the final binary. Try to adjust your dependencies so that only one package uses the `links = "sqlite3"` value. For more information, see https://doc.rust-lang.org/cargo/reference/resolver.html#links.
failed to select a version for `sqlite3-src` which could resolve this conflict
Hello sir
How to fetch values from data base sqlite.
value is inserted .but how to fetch value from sqlite database
i write that line but how to fetch
const rows = await db.select<Array<{ name: string }>>('SELECT name FROM users WHERE age > ?', [20])
help me . please . me .
thank you .
What are the pros/cons of using this plugin vs tauri-plugin-sql with the sqlite driver?
Sorry if it's obvious, but it wasn't for me :)
bun run tauri dev
$ tauri dev
Running BeforeDevCommand (bun run dev
)
$ vite
VITE v5.1.6 ready in 606 ms
โ Local: http://localhost:1420/
โ Network: use --host to expose
Info Watching /workspaces/bostan-centre/src-tauri for changes...
Updating git repository https://github.com/lzdyes/tauri-plugin-sqlite
Updating crates.io index
error: failed to select a version for gtk-sys
.
... required by package gtk v0.15.1
... which satisfies dependency gtk = "^0.15"
of package tauri v1.0.0-rc.8
... which satisfies dependency tauri = "^1.0.0-rc.8"
of package tauri-plugin-sqlite v0.1.0 (https://github.com/lzdyes/tauri-plugin-sqlite?tag=v0.1.1#3d09a5a9)
... which satisfies git dependency tauri-plugin-sqlite
of package bostan-centre v0.0.0 (/workspaces/bostan-centre/src-tauri)
versions that meet the requirements ^0.15.1
are: 0.15.3, 0.15.1
the package gtk-sys
links to the native library gtk-3
, but it conflicts with a previous package which links to gtk-3
as well:
package gtk-sys v0.18.0
... which satisfies dependency ffi = "^0.18"
(locked to 0.18.0) of package gtk v0.18.1
... which satisfies dependency gtk = "^0.18"
(locked to 0.18.1) of package tauri v2.0.0-beta.10
... which satisfies dependency tauri = "^2.0.0-beta"
(locked to 2.0.0-beta.10) of package bostan-centre v0.0.0 (/workspaces/bostan-centre/src-tauri)
Only one package in the dependency graph may specify the same links value. This helps ensure that only one copy of a native library is linked in the final binary. Try to adjust your dependencies so that only one package uses the links = "gtk-3"
value. For more information, see https://doc.rust-lang.org/cargo/reference/resolver.html#links.
failed to select a version for gtk-sys
which could resolve this conflict
Terminated
error: script "tauri" exited with code 101
I want to see what tables are in the database
Write an error like this
const tables = await db.execute('.tables')
error: near ".": syntax error (code 1)
Good Work! The plugin works well. Although the warning shows in VS code. I use the plugin in my TSX file.
Can support sequelize
https://sequelize.org/
Hey! Nice plugin. Could you tell how can I close the db? Thanks!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.