Skip to content

Commit e05ce93

Browse files
cleanup
1 parent 9e15265 commit e05ce93

File tree

4 files changed

+6
-13
lines changed

4 files changed

+6
-13
lines changed

README.md

+5-5
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,15 @@
22

33
High-performance asynchronous interface for SQLite on Dart & Flutter.
44

5-
| package | build | pub | likes | popularity | pub points |
6-
| ------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------ | ---------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------- |
7-
| sqlite_async | [![build](https://github.com/powersync-ja/sqlite_async.dart/actions/workflows/test.yaml/badge.svg?branch=main)](https://github.com/powersync-ja/sqlite_async.dart/actions?query=workflow%3Atest) | [![pub package](https://img.shields.io/pub/v/sqlite_async.svg)](https://pub.dev/packages/sqlite_async) | [![likes](https://img.shields.io/pub/likes/powersync?logo=dart)](https://pub.dev/packages/sqlite_async/score) | [![popularity](https://img.shields.io/pub/popularity/sqlite_async?logo=dart)](https://pub.dev/packages/sqlite_async/score) | [![pub points](https://img.shields.io/pub/points/sqlite_async?logo=dart)](https://pub.dev/packages/sqlite_async/score) |
8-
| drift_sqlite_async | [![build](https://github.com/powersync-ja/sqlite_async.dart/actions/workflows/test.yaml/badge.svg?branch=main)](https://github.com/powersync-ja/sqlite_async/actions?query=workflow%3Atest) | [![pub package](https://img.shields.io/pub/v/drift_sqlite_async.svg)](https://pub.dev/packages/drift_sqlite_async) | [![likes](https://img.shields.io/pub/likes/drift_sqlite_async?logo=dart)](https://pub.dev/packages/drift_sqlite_async/score) | [![popularity](https://img.shields.io/pub/popularity/drift_sqlite_async?logo=dart)](https://pub.dev/packages/drift_sqlite_async/score) | [![pub points](https://img.shields.io/pub/points/drift_sqlite_async?logo=dart)](https://pub.dev/packages/drift_sqlite_async/score) |
5+
| package | build | pub | likes | popularity | pub points |
6+
|----------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------| ------- | ------- |
7+
| sqlite_async | [![build](https://github.com/powersync-ja/sqlite_async.dart/actions/workflows/test.yaml/badge.svg?branch=main)](https://github.com/powersync-ja/sqlite_async.dart/actions?query=workflow%3Atest) | [![pub package](https://img.shields.io/pub/v/sqlite_async.svg)](https://pub.dev/packages/sqlite_async) | [![likes](https://img.shields.io/pub/likes/powersync?logo=dart)](https://pub.dev/packages/sqlite_async/score) | [![popularity](https://img.shields.io/pub/popularity/sqlite_async?logo=dart)](https://pub.dev/packages/sqlite_async/score) | [![pub points](https://img.shields.io/pub/points/sqlite_async?logo=dart)](https://pub.dev/packages/sqlite_async/score)
8+
| drift_sqlite_async | [![build](https://github.com/powersync-ja/sqlite_async.dart/actions/workflows/test.yaml/badge.svg?branch=main)](https://github.com/powersync-ja/sqlite_async/actions?query=workflow%3Atest) | [![pub package](https://img.shields.io/pub/v/drift_sqlite_async.svg)](https://pub.dev/packages/drift_sqlite_async) | [![likes](https://img.shields.io/pub/likes/drift_sqlite_async?logo=dart)](https://pub.dev/packages/drift_sqlite_async/score) | [![popularity](https://img.shields.io/pub/popularity/drift_sqlite_async?logo=dart)](https://pub.dev/packages/drift_sqlite_async/score) | [![pub points](https://img.shields.io/pub/points/drift_sqlite_async?logo=dart)](https://pub.dev/packages/drift_sqlite_async/score)
99

1010
## Getting Started
1111

1212
This monorepo uses [melos](https://melos.invertase.dev/) to handle command and package management.
1313

1414
To configure the monorepo for development run `melos prepare` after cloning.
1515

16-
For detailed usage, check out the inner [sqlite_async](https://github.com/powersync-ja/sqlite_async.dart/tree/main/packages/sqlite_async) and [drift_sqlite_async](https://github.com/powersync-ja/sqlite_async.dart/tree/main/packages/drift_sqlite_async) packages.
16+
For detailed usage, check out the inner [sqlite_async](https://github.com/powersync-ja/sqlite_async.dart/tree/main/packages/sqlite_async) and [drift_sqlite_async](https://github.com/powersync-ja/sqlite_async.dart/tree/main/packages/drift_sqlite_async) packages.

packages/drift_sqlite_async/pubspec_overrides.yaml

-4
This file was deleted.

packages/sqlite_async/lib/src/web/web_mutex.dart

-3
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,6 @@ import 'package:web/web.dart';
1212
@JS('navigator')
1313
external Navigator get _navigator;
1414

15-
@JS('AbortController')
16-
external AbortController get _abortController;
17-
1815
/// Web implementation of [Mutex]
1916
class MutexImpl implements Mutex {
2017
late final mutex.Mutex fallback;

packages/sqlite_async/lib/src/web/web_sqlite_open_factory.dart

+1-1
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ class DefaultSqliteOpenFactory
5555
// cases, we need to implement a mutex locally.
5656
final mutex = connection.access == AccessMode.throughSharedWorker
5757
? null
58-
: MutexImpl();
58+
: MutexImpl(identifier: path); // Use the DB path as a mutex identifier
5959

6060
return WebDatabase(connection.database, options.mutex ?? mutex);
6161
}

0 commit comments

Comments
 (0)