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

outdated

Dart language bindings for unqlite databases

example/unqlite_example.dart

import 'package:unqlite/unqlite.dart';

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

  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
0
points
6
downloads

Publisher

unverified uploader

Weekly Downloads

Dart language bindings for unqlite databases

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

ffi

More

Packages that depend on unqlite