Some maintenance work on examples

This commit is contained in:
Simon Binder 2022-04-01 22:39:28 +02:00
parent 204fbad682
commit fc0d30583a
No known key found for this signature in database
GPG Key ID: 7891917E4147B8C0
7 changed files with 12 additions and 22 deletions

View File

@ -1,7 +1,10 @@
This example demonstrates how a shared web worker can be used with moor.
This example demonstrates how a shared web worker can be used with drift.
To view this example, run
```
dart run build_runner serve --release
```
Then, open `localhost:8080` in different tabs and note how changes propagate across tabs
in real-time!

View File

@ -1,14 +1 @@
# Defines a default set of lint rules enforced for
# projects at Google. For details and rationale,
# see https://github.com/dart-lang/pedantic#enabled-lints.
include: package:pedantic/analysis_options.yaml
# For lint rules and documentation, see http://dart-lang.github.io/linter/lints.
# Uncomment to specify additional rules.
# linter:
# rules:
# - camel_case_types
analyzer:
# exclude:
# - path/to/excluded/files/**
include: package:lints/recommended.yaml

View File

@ -6,7 +6,7 @@ part of 'database.dart';
// MoorGenerator
// **************************************************************************
// ignore_for_file: unnecessary_brace_in_string_interps, unnecessary_this
// ignore_for_file: type=lint
class Entrie extends DataClass implements Insertable<Entrie> {
final int id;
final String value;

View File

@ -14,13 +14,13 @@ dependencies:
dev_dependencies:
build_runner: ^2.0.0
build_web_compilers: ^3.0.0
pedantic: ^1.9.0
lints: ^1.0.1
drift_dev:
dependency_overrides:
drift:
drift:
path: ../../drift
drift_dev:
drift_dev:
path: ../../drift_dev
sqlparser:
path: ../../sqlparser

View File

@ -1 +1 @@
../../integration_tests/web/test/sql-wasm.js
../../../extras/integration_tests/web/test/sql-wasm.js

View File

@ -1 +1 @@
../../integration_tests/web/test/sql-wasm.wasm
../../../extras/integration_tests/web/test/sql-wasm.wasm

View File

@ -6,7 +6,7 @@ part of 'database.dart';
// MoorGenerator
// **************************************************************************
// ignore_for_file: unnecessary_brace_in_string_interps, unnecessary_this
// ignore_for_file: type=lint
class User extends DataClass implements Insertable<User> {
final int id;
final String name;