flutter_ota_kit_postgres 0.1.0 copy "flutter_ota_kit_postgres: ^0.1.0" to clipboard
flutter_ota_kit_postgres: ^0.1.0 copied to clipboard

Postgres plugin for flutter_ota_kit — database backend.

flutter_ota_kit_postgres #

Postgres backend for flutter_ota_kit: bundle metadata in a Postgres database and artifacts in the bytea-backed storage plugin. Used by the flutter-ota CLI and the Flutter SDK's FlutterPatcher.configurePostgres(...).

What's inside #

  • postgresDatabase / PostgresConfig — bundle read/write over a Postgres connection.
  • postgresStorage / PostgresStorageConfig / resolvePostgresStorageClient — artifact storage.
  • getUpdateInfo — resolve the latest applicable bundle for a device.
  • Row mappers (PostgresBundleRow, PostgresBundlePatchRow, bundleToRowValues, bundleToPatchRows) for the bundles / bundle_patches tables.

Configuration (environment) #

Variable Purpose
DATABASE_URL Full Postgres connection string (preferred).
POSTGRES_HOST / POSTGRES_PORT / POSTGRES_DB / POSTGRES_USER / POSTGRES_PASSWORD / POSTGRES_SSLMODE Individual connection fields.
POSTGRES_SERVING_BASE_URL HTTP proxy/base URL in front of the storage table for artifact downloads.
POSTGRES_BASE_PATH Optional object-key prefix.

License #

MIT.

0
likes
0
points
209
downloads

Documentation

Documentation

Publisher

unverified uploader

Weekly Downloads

Postgres plugin for flutter_ota_kit — database backend.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter_ota_kit_core, flutter_ota_kit_plugin_core, postgres

More

Packages that depend on flutter_ota_kit_postgres