laconic 0.0.1 copy "laconic: ^0.0.1" to clipboard
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
150
pub points
0%
popularity

Publisher

verified publishercals.xyz

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

Homepage

Documentation

API reference

License

MIT (license)

Dependencies

mysql1

More

Packages that depend on laconic