unqlite 0.0.3 copy "unqlite: ^0.0.3" to clipboard
unqlite: ^0.0.3 copied to clipboard

Dart language bindings for unqlite databases

example/unqlite_example.dart

import 'package:unqlite/unqlite.dart';

void main() {
  UnQLite unqlite = UnQLite.open("./test/test.db");
  unqlite.store("name", "Alex");
  unqlite.store("age", "18");
  print(unqlite.fetch("name"));
  print(unqlite.fetch("age"));

  unqlite.append("age", "19");
  unqlite.fetchCallback("age", (value) {
    print(value);
  });

//   unqlite.execute('''
// if( !db_exists('users') ){

//     /* Try to create it */

//    db_create('users');
// }

// \$zRec = [

// {
//    name : 'james',
//    age  : 27,
//    mail : '[email protected]'
// },

// {
//    name : 'robert',
//    age  : 35,
//    mail : '[email protected]'
// },

// {
//    name : 'monji',
//    age  : 47,
//    mail : '[email protected]'
// },
// {
//   name : 'barzini',
//   age  : 52,
//   mail : '[email protected]'
// }
// ];

// db_store('users',\$zRec);
//     ''');

  unqlite.close();
}
0
likes
110
pub points
40%
popularity

Publisher

unverified uploader

Dart language bindings for unqlite databases

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (LICENSE)

Dependencies

buffer, ffi

More

Packages that depend on unqlite