2
I’m testing the Dart to discuss its feasibility in replacing part of the code base in Java. I didn’t find anything similar to the JDBC specification in Dart, so I’m guessing the language doesn’t provide standardized database access.
Looking for SQL on https://pub.dev, did not find results for Sqlite in CLI applications, only loaded from tags WEB
and FLUTTER
(expected the tag OTHER
).
For SQL in tag
OTHER
, for now I just founddart_mssql
For Sqlite, I found the
dart:web_sql
forWEB
andsqflite
forFLUTTER
So, how to use Sqlite for a CLI program on Dart?
I found something as an example in the Dart SDK itself, which would allow linking C functions on Dart: https://github.com/dart-lang/sdk/blob/master/samples/ffi/sqlite/docs/sqlite-tutorial.md. ; and this specific example is how to enable Sqlite on Dart cli/server
– Jefferson Quesado