GithubHelp home page GithubHelp logo

lzdyes / tauri-plugin-sqlite Goto Github PK

View Code? Open in Web Editor NEW
97.0 4.0 11.0 27 KB

A Tauri plugin for interface to SQLite

License: MIT License

Rust 78.84% TypeScript 13.20% JavaScript 7.95%
rust tauri tauri-plugin sqlite database typescript

tauri-plugin-sqlite's People

Contributors

lzdyes avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

tauri-plugin-sqlite's Issues

How to Change or Optimize the location on build

iam using svelte with tauri.

By default this lib uses the location "src-tauri" , works fine if we run the dev

but its not including the db file to the dist folder on build .

Give the complete guide to change the db location and to buildle it automatically by tauri.

@lzdyes @Heng30

failed to select a version for `sqlite3-src`.

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

Gtk-sys conflict

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

How do I run commands to view tables

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)

How to close db?

Hey! Nice plugin. Could you tell how can I close the db? Thanks!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.