Does anyone can tell me how to connect to mysql database with Dart? I've been reading and searching for days but can't find any suitable answers. I just learning web programming. Thank you!
相关问题
- What means in Dart static type and why it differs
- sqlyog export query result as csv
- NOT DISTINCT query in mySQL
- NOT DISTINCT query in mySQL
- MySQL: conduct a basic search
You can use SQLJocky to connect to MySQL. Add
to your pubspec.yaml an run pub install. Now you can connect to MySQL like this
I haven't tried this, but here is one: http://github.com/jamesots/sqljocky
I think for dart 2
mysql1
is a simple choice.Example:
(tested on Dart version 2.1.0 (build 2.1.0-dev.9.4 f9ebf21297))
You can try using sqljocky -> http://pub.dartlang.org/packages/sqljocky