galileo_sqljocky5 3.0.0 copy "galileo_sqljocky5: ^3.0.0" to clipboard
galileo_sqljocky5: ^3.0.0 copied to clipboard

MySQL driver for Dart with support for prepared statements, transactions and connection pooling.

example/main.dart

import 'dart:io';

import 'package:galileo_sqljocky5/sqljocky.dart';

main() async {
  var s = ConnectionSettings(
    user: "dart_jaguar",
    password: "dart_jaguar",
    host: "localhost",
    port: 3306,
    db: "example",
  );

  var conn = await MySqlConnection.connect(s);

  var r = await conn.execute("CREATE TABLE IF NOT EXISTS t1 (a INT)");
  print(r);
  Results ir = await conn.prepared("INSERT INTO t1 (a) VALUES (?)", [5]).then(deStream);
  print(ir.affectedRows);
  Results sr = await conn.execute("SELECT * FROM t1").deStream();
  print(sr.length);
  exit(0);
}
7
likes
110
pub points
47%
popularity

Publisher

verified publishergalileodart.com

MySQL driver for Dart with support for prepared statements, transactions and connection pooling.

Repository (GitHub)
View/report issues

Documentation

API reference

License

unknown (LICENSE)

Dependencies

async, collection, crypto, galileo_typed_buffer, synchronized

More

Packages that depend on galileo_sqljocky5