mirror of https://github.com/AMT-Cheif/drift.git
Some maintenance work on examples
This commit is contained in:
parent
204fbad682
commit
fc0d30583a
|
@ -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!
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -1 +1 @@
|
|||
../../integration_tests/web/test/sql-wasm.js
|
||||
../../../extras/integration_tests/web/test/sql-wasm.js
|
|
@ -1 +1 @@
|
|||
../../integration_tests/web/test/sql-wasm.wasm
|
||||
../../../extras/integration_tests/web/test/sql-wasm.wasm
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue