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 : 'dude@example.com'
// },

// {
//    name : 'robert',
//    age  : 35,
//    mail : 'rob@example.com'
// },

// {
//    name : 'monji',
//    age  : 47,
//    mail : 'monji@example.com'
// },
// {
//   name : 'barzini',
//   age  : 52,
//   mail : 'barz@mobster.com'
// }
// ];

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

  unqlite.close();
}
0
likes
130
points
25
downloads

Publisher

unverified uploader

Weekly Downloads

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