laconic 0.0.1 icon indicating copy to clipboard operation
laconic: ^0.0.1 copied to clipboard

A laravel like sql query builder for mysql designed to be flexible, portable and easy to use.

example/laconic_example.dart

import 'package:laconic/laconic.dart';

void main() async {
  final db = DB(
    host: '127.0.0.1',
    port: 3333,
    database: 'foxy',
    username: 'root',
    password: 'root',
  );
  final table = 'example_table';
  try {
    await db.table(table).insert({'id': 1});
    await db.table(table).where('id', 1).sole();
    await db.table(table).where('id', 1).update({'name': 'laconic'});
    await db.table(table).where('id', 1).delete();
    await db.table(table).batchInsert([
      {'id': 1},
      {'id': 2},
      {'id': 3}
    ]);
  } catch (e) {
    // error handling code goes here
  }
}
1
likes
120
pub points
0%
popularity

Publisher

verified publisher iconcals.xyz

A laravel like sql query builder for mysql designed to be flexible, portable and easy to use.

Documentation

API reference

License

Icon for licenses.MIT (LICENSE)

Dependencies

mysql1

More

Packages that depend on laconic