Skip to main content

Crate tauri_plugin_sql

Crate tauri_plugin_sql 

Source
Expand description

Interface with SQL databases through sqlx.

§Cargo features

No database driver is enabled by default. Enable at least one driver; multiple drivers may be enabled together.

  • sqlite: Adds support for SQLite.
  • mysql: Adds support for MySQL.
  • postgres: Adds support for PostgreSQL.

Structs§

Builder
Tauri SQL plugin builder.
DbInstances
The connection pools the plugin currently holds, keyed by the connection string the database was loaded with.
Migration
A migration definition.
PluginConfig
The plugins > sql section of the Tauri configuration file.

Enums§

DbPool
A connection pool for one of the supported database drivers.
Error
Errors that can happen while connecting to a database, running migrations or executing a query.
MigrationKind
The direction of a Migration.