I have created a form that allows input from users. That data is sent to serverside dart code. I would like to store the data in a database.
What is the latest development on database access? ORM?
Our team is using MongoDB database and the Dart Mongo drivers for a production application with active users.
We are also using the Objectory ORM that you might want to use. It makes the use of the database simpler.
As an example, you can define a model:
class Person extends PersistentObject {
get name => getProperty('name');
set name(value) => setProperty('name', value);
}
Then creating a new instance and saving it to the database goes like this:
var p = new Person()
..name = 'Jack Bauer';
p.save();
We've been happy with Mongo and I'm pretty sure it will serve you well too.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With