How to use Sqlite in CLI applications written in Dart?

Asked

Viewed 76 times

2

I’m testing the 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 found dart_mssql

For Sqlite, I found the dart:web_sql for WEB and sqflite for FLUTTER

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

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.