-
-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(cli): type 'Null' is not a subtype of type 'bool' in type cast #273
- Loading branch information
Seven Du
committed
Nov 27, 2023
1 parent
3e57f2e
commit cc7ad64
Showing
20 changed files
with
11,324 additions
and
2,059 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,12 @@ | ||
/// Prisma Dart client generator | ||
library prisma.generator; | ||
|
||
import 'package:prisma_generator_helper/prisma_generator_helper.dart'; | ||
import 'package:orm/prisma_generator_helper/prisma_generator_helper.dart'; | ||
|
||
import 'src/generator.dart'; | ||
|
||
Future<void> main() => generator(PrismaDartClientGenerator()); | ||
Future<void> main() async { | ||
final client = PrismaDartClientGenerator(); | ||
|
||
await generator(client); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
import 'dart:convert'; | ||
import 'dart:io'; | ||
|
||
import 'package:orm/prisma_generator_helper/prisma_generator_helper.dart'; | ||
|
||
void main() { | ||
final dmmf = json.decode( | ||
File('dmmf.json').readAsStringSync(), | ||
); | ||
|
||
GeneratorOptions.fromJson(dmmf); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.