final _adapter = PgAdapter('bibliotheque', username: 'postgres', password: 'password1234');
await _adapter.connect();
//create beans
final albumBean = AlbumBean(_adapter);
Album slipknot = new Album("We are not",1687);
Album skillet = new Album("Victorious",1745);
Album amonamarth = new Album("Berserker",2038);
List listeAlb = new List();
listeAlb.add(slipknot);
listeAlb.add(skillet);
listeAlb.add(amonamarth);
albumBean.insertMany(listeAlb);
await _adapter.close();`
D:\Projet Dart\lel>dart "d:\Projet Dart\lel\lib\main.dart"
lib/main.dart: Warning: Interpreting this as package URI, 'package:lel/main.dart'.
Unhandled exception:
UnimplementedError: InsertMany is not implemented yet!
#3 _startIsolate. (dart:isolate-patch/isolate_patch.dart:307:19)
#4 _RawReceivePortImpl._handleMessage (dart:isolate-patch/isolate_patch.dart:174:12)
Thanks for your help !
Hello ! i don't understand that error
`main() async {
final _adapter = PgAdapter('bibliotheque', username: 'postgres', password: 'password1234');
await _adapter.connect(); //create beans final albumBean = AlbumBean(_adapter);
Album slipknot = new Album("We are not",1687); Album skillet = new Album("Victorious",1745); Album amonamarth = new Album("Berserker",2038);
List listeAlb = new List();
listeAlb.add(slipknot);
listeAlb.add(skillet);
listeAlb.add(amonamarth);
albumBean.insertMany(listeAlb);
await _adapter.close();`
D:\Projet Dart\lel>dart "d:\Projet Dart\lel\lib\main.dart" lib/main.dart: Warning: Interpreting this as package URI, 'package:lel/main.dart'. Unhandled exception: UnimplementedError: InsertMany is not implemented yet!
0 PgAdapter.insertMany (package:jaguar_query_postgres/src/adapter.dart:85:5)
1 _AlbumBean.insertMany (package:lel/album.jorm.dart:110:21)
2 main (package:lel/main.dart:23:13)