Skip to main content

knex_dart_d1 0.2.2 copy "knex_dart_d1: ^0.2.2" to clipboard
knex_dart_d1: ^0.2.2 copied to clipboard

Cloudflare D1 driver for knex_dart — execute queries against a Cloudflare D1 SQLite database via the Cloudflare REST API using the knex_dart query builder.

140/ 160
pub points
23
downloads

We analyzed this package 11 days ago, and awarded it 140 pub points (of a possible 160):

Passed report section
Follow Dart file conventions
30 / 30trigger folding of the section

Passed check 10/10 points: Provide a valid pubspec.yaml

Passed check 5/5 points: Provide a valid README.md

Passed check 5/5 points: Provide a valid CHANGELOG.md

Passed check 10/10 points: Use an OSI-approved license

Detected license: MIT.

Failed report section
Provide documentation
10 / 20trigger folding of the section

Passed check 10/10 points: 20% or more of the public API has dartdoc comments

11 out of 37 API elements (29.7 %) have documentation comments.

Some symbols that are missing documentation: knex_dart_d1.D1BatchBuilder.add, knex_dart_d1.D1BatchBuilder.addRaw, knex_dart_d1.D1Client.D1Client.new, knex_dart_d1.D1Client.close, knex_dart_d1.D1Client.delete.

Failed check 0/10 points: Package has an example

No example found.

See package layout guidelines on how to add an example.

Passed report section
Platform support
20 / 20trigger folding of the section

Passed check 20/20 points: Supports 5 of 6 possible platforms (iOS, Android, Web, Windows, macOS, Linux)

  • ✓ Android

  • ✓ iOS

  • ✓ Windows

  • ✓ Linux

  • ✓ macOS

These platforms are not supported:

Package not compatible with platform Web

Because:

  • package:knex_dart_d1/knex_dart_d1.dart that imports:
  • package:knex_dart_d1/src/knex_d1.dart that imports:
  • package:knex_dart_d1/src/d1_client.dart that imports:
  • package:knex_dart/knex_dart.dart that imports:
  • package:knex_dart/src/migration/migrator.dart that imports:
  • package:knex_dart/src/migration/migration_source.dart that imports:
  • package:universal_io/io.dart that imports:
  • package:universal_io/universal_io.dart that imports:
  • package:universal_io/src/_exports_in_browser.dart that imports:
  • package:universal_io/src/internet_address.dart that imports:
  • dart:io
Partially passed report section
Pass static analysis
40 / 50trigger folding of the section

Partially passed check 40/50 points: code has no errors, warnings, lints, or formatting issues

INFO: 'Transaction' is deprecated and shouldn't be used. Client.transaction()/Transaction were never implemented (every driver override throws) and will be removed in a future major version. Use the callback-style transaction API instead, e.g. KnexPostgres.trx((trx) async { ... }). Client.runInTransaction() is safe only on drivers that override it to pin one physical connection (Postgres, MySQL, SQLite).

lib/src/knex_d1.dart:144:10

    ╷
144 │   Future<Transaction> transaction([TransactionConfig? config]) =>
    │          ^^^^^^^^^^^
    ╵

To reproduce make sure you are using the lints_core and run dart analyze lib/src/knex_d1.dart

INFO: 'TransactionConfig' is deprecated and shouldn't be used. Client.transaction()/Transaction were never implemented (every driver override throws) and will be removed in a future major version. Use the callback-style transaction API instead, e.g. KnexPostgres.trx((trx) async { ... }). Client.runInTransaction() is safe only on drivers that override it to pin one physical connection (Postgres, MySQL, SQLite).

lib/src/knex_d1.dart:144:36

    ╷
144 │   Future<Transaction> transaction([TransactionConfig? config]) =>
    │                                    ^^^^^^^^^^^^^^^^^
    ╵

To reproduce make sure you are using the lints_core and run dart analyze lib/src/knex_d1.dart

Passed report section
Support up-to-date dependencies
40 / 40trigger folding of the section

Passed check 10/10 points: All of the package dependencies are supported in the latest version

Package Constraint Compatible Latest Notes
http ^1.2.0 1.6.0 1.6.0
knex_dart ^1.3.0 1.4.0 1.4.0
Transitive dependencies
Package Constraint Compatible Latest Notes
async - 2.13.1 2.13.1
collection - 1.19.1 1.19.1
http_parser - 4.1.2 4.1.2
knex_dart_capabilities - 0.3.2 0.3.2
logging - 1.3.0 1.3.0
meta - 1.19.0 1.19.0
path - 1.9.1 1.9.1
source_span - 1.10.2 1.10.2
string_scanner - 1.4.1 1.4.1
term_glyph - 1.2.2 1.2.2
typed_data - 1.4.0 1.4.0
universal_io - 2.3.1 2.3.1
web - 1.1.2 1.1.2

To reproduce run dart pub outdated --no-dev-dependencies --up-to-date --no-dependency-overrides.

Passed check 10/10 points: Package supports latest stable Dart and Flutter SDKs

Passed check 20/20 points: Compatible with dependency constraint lower bounds

pub downgrade does not expose any static analysis error.

Analyzed with Pana 0.23.19, Dart 3.13.7.

Check the analysis log for details.

Weekly downloads

Display as:
By versions:
0
likes
140
points
23
downloads

Documentation

API reference

Publisher

verified publishermahawarkartikey.in

Weekly Downloads

Cloudflare D1 driver for knex_dart — execute queries against a Cloudflare D1 SQLite database via the Cloudflare REST API using the knex_dart query builder.

Repository (GitHub)
View/report issues
Contributing

Topics

#sql #query-builder #cloudflare #d1 #knex

License

MIT (license)

Dependencies

http, knex_dart

More

Packages that depend on knex_dart_d1