moor_generator 1.4.0

  • README.md
  • CHANGELOG.md
  • Installing
  • Versions
  • 79

moor Generator #

This library contains the generator that turns your Table classes from moor into database code. When using the moor, you'll probably want to use the moor_flutter implementation directly.

Please see the homepage of moor or the moor_flutter package for details on how to use this package.

1.4.0 #

  • Added the RealColumn, which stores floating point values
  • Better configuration for the serializer with the JsonKey annotation and the ability to use a custom ValueSerializer

1.3.0 #

  • Moor now supports table joins
    • Added table aliases
  • Default values for columns: Just use the withDefault method when declaring a column
    • added expressions that resolve to the current date or time
  • Fixed a crash that would occur if the first operation was a transaction
  • Better support for custom expressions as part of a regular query
  • Faster hashcode implementation in generated data classes

1.2.0 #

  • Blob data type
  • Generated classes now use lazy getters instead of recalculating fields on each access
  • Custom Constraints
  • Data classes can be converted from and to json

1.1.0 #

  • The generated data classes now implement toString()

1.0.0 #

  • Initial version of the Moor generator

Use this package as a library

1. Depend on it

Add this to your package's pubspec.yaml file:


dependencies:
  moor_generator: ^1.4.0

2. Install it

You can install packages from the command line:

with pub:


$ pub get

Alternatively, your editor might support pub get. Check the docs for your editor to learn more.

3. Import it

Now in your Dart code, you can use:


import 'package:moor_generator/moor_generator.dart';
  
Version Uploaded Documentation Archive
1.4.0 Jun 10, 2019 Go to the documentation of moor_generator 1.4.0 Download moor_generator 1.4.0 archive
1.3.1 Apr 29, 2019 Go to the documentation of moor_generator 1.3.1 Download moor_generator 1.3.1 archive
1.3.0 Apr 20, 2019 Go to the documentation of moor_generator 1.3.0 Download moor_generator 1.3.0 archive
1.2.1 Mar 27, 2019 Go to the documentation of moor_generator 1.2.1 Download moor_generator 1.2.1 archive
1.2.0 Mar 27, 2019 Go to the documentation of moor_generator 1.2.0 Download moor_generator 1.2.0 archive
1.1.1 Mar 10, 2019 Go to the documentation of moor_generator 1.1.1 Download moor_generator 1.1.1 archive
1.0.0 Mar 9, 2019 Go to the documentation of moor_generator 1.0.0 Download moor_generator 1.0.0 archive
Popularity:
Describes how popular the package is relative to other packages. [more]
63
Health:
Code health derived from static analysis. [more]
99
Maintenance:
Reflects how tidy and up-to-date the package is. [more]
90
Overall:
Weighted score of the above. [more]
79
Learn more about scoring.

We analyzed this package on Jun 25, 2019, and provided a score, details, and suggestions below. Analysis was completed with status completed using:

  • Dart: 2.3.2
  • pana: 0.12.18

Platforms

Detected platforms: other

Primary library: package:moor_generator/moor_generator.dart with components: io, build, mirrors.

Health issues and suggestions

Document public APIs. (-1 points)

2 out of 2 API elements have no dartdoc comment.Providing good documentation for libraries, classes, functions, and other API elements improves code readability and helps developers find and use your API.

Maintenance suggestions

Maintain an example. (-10 points)

Create a short demo in the example/ directory to show how to use this package.

Common filename patterns include main.dart, example.dart, and moor_generator.dart. Packages with multiple examples should provide example/README.md.

For more information see the pub package layout conventions.

Dependencies

Package Constraint Resolved Available
Direct dependencies
Dart SDK >=2.2.0 <3.0.0
analyzer >=0.35.2 <0.37.0 0.36.4
build ^1.1.0 1.1.4
build_config >=0.3.1 <1.0.0 0.4.0
built_value >=6.3.0 <7.0.0 6.6.0
meta >=1.0.0 <2.0.0 1.1.7
moor ^1.4.0 1.4.0+1
recase ^2.0.1 2.0.1
source_gen ^0.9.4 0.9.4+2
Transitive dependencies
args 1.5.2
async 2.2.0
built_collection 4.2.2
charcode 1.1.2
collection 1.14.11
convert 2.1.1
crypto 2.0.6
csslib 0.16.0
dart_style 1.2.8
fixnum 0.10.9
front_end 0.1.19
glob 1.1.7
html 0.14.0+2
json_annotation 2.4.0
kernel 0.3.19
logging 0.11.3+2
matcher 0.12.5
package_config 1.0.5
path 1.6.2
pedantic 1.7.0
pub_semver 1.4.2
pubspec_parse 0.1.4
quiver 2.0.3
source_span 1.5.5
stack_trace 1.9.3
string_scanner 1.0.4
term_glyph 1.1.0
typed_data 1.1.6
watcher 0.9.7+10
yaml 2.1.16
Dev dependencies
build_runner >=1.1.0 <1.6.0
build_test >=0.10.0 <0.11.0
built_value_generator >=6.3.0 <7.0.0
test ^1.6.0
test_api ^0.2.0
test_core ^0.2.0