Discussion:
[dart-misc] Release of Dartabase Model 1.0.0
Hannes Rammer
2016-06-08 17:32:20 UTC
Permalink
Serverside Database Object Models for simple data manipulation using
MySQL/PGSQL without having to write SQL Using

MYSQL via sqljocky <http://pub.dartlang.org/packages/sqljocky> version
0.14.1

PGSQL via postgresql <http://pub.dartlang.org/packages/postgresql> version
0.3.3
https://pub.dartlang.org/packages/dartabase_model

https://github.com/HannesRammer/Dartabase/tree/master/dartabase_model

https://github.com/HannesRammer/

You are able to write

User user = await User.findBy("name","Tim");
user.name = "Hannes";
user.save();

instead of the bulky

var results = await pool.query('select * from users where name = "Tim"');results.forEach((row) {
print('Name: ${row[0]}, email: ${row[1]}');
var query = await pool.prepare('insert into users (name) values (?) where id = row.id);
var result = await query.execute(['Hannes']);
});

*Functions available are*findBy(String column,var value)
findById(var id) findAllBy(String column, var value)
findAll()
save()
delete()

*RELATION FUNCTIONS*

receive(object)
hasOne(object)
hasMany(object)
hasOneWith(object,String column,String value)
hasManyWith(object,String column,String value)
remove(object)

PLEASE TRY IT OUT END TELL ME ABOUT WHAT YOU LIKE DISLIKE AND OR JOIN DEVELOPMENT :)

Thanks and enjoy

https://wired-strategy-112617.appspot.com/
--
For other discussions, see https://groups.google.com/a/dartlang.org/

For HOWTO questions, visit http://stackoverflow.com/tags/dart

To file a bug report or feature request, go to http://www.dartbug.com/new
---
You received this message because you are subscribed to the Google Groups "Dart Misc" group.
To unsubscribe from this group and stop receiving emails from it, send an email to misc+***@dartlang.org.
Loading...