mysql1_dart
mysql1_dart copied to clipboard
MySQL driver for Dart
I insert data into several tables at the same time, and if there is an error in some of them, the data cannot be committed.
From the example code here: https://pub.dev/packages/mysql1/example Running this throws a RangeError on this line: ```dart var result = await conn.query( 'insert into users (name, email, age) values (?, ?, ?)',...
How do I check if theres no records within results?
add a way to automatically reconnect if the mysql/mariadb database is restarted, I think this would be very easy to implement, just save the connection settings and check if it...
The code like this: var proxy = getConnection(xxxx); var result; result = await proxy.query('select * from t_employee where id = 1'); trpc.logger.info('after query: $result'); result = await proxy.query('select * from...
I encountered the Socket Closed Exception and I follow the #105 to solve it. But now I encountered another issue that the first query is always empty. Just like the...
I can connect to my database and create tables with this init method. ``` static Future initDB() async { final conn = await getConnection(); await conn.query( 'CREATE TABLE IF NOT...
add a method that returns the data as a map list just like the "postgres" package, I thought of an implementation like this, maybe an extension of the Results class...
For the following table: ``` CREATE TABLE feet ( id serial PRIMARY KEY, n_toes int NOT NULL, created_at timestamp, updated_at timestamp ); ``` Running the following query on MariaDB 10.6.5...
We have noticed that the package is called `mysql1` and we assume that is the case because the name `mysql` is already taken on `pub.dev`. It would be nice if...