Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8340267
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T05:07:59+00:00 2026-06-09T05:07:59+00:00

I went through the documentation and did not find anything related to databases. I

  • 0

I went through the documentation and did not find anything related to databases.

I guess this is not yet natively possible — if not, then are there any libraries that utilize e.g. the Socket class to make it possible to connect to a database?

To be more specific, I’d like to connect to a MySQL and a MongoDB databases.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-09T05:08:01+00:00Added an answer on June 9, 2026 at 5:08 am

    I found MongoDart to be the first library to give MongoDB access to Dart.

    Here’s an example:

    #import("../lib/mongo.dart");
    #import("dart:builtin");
    
    main() {
        Db db = new Db('mongo-dart-test');
    
        simpleUpdate() {
            DbCollection coll = db.collection('collection-for-save');
            coll.remove();  
            List toInsert = [
                             {"name":"a", "value": 10},
                             {"name":"b", "value": 20},
                             {"name":"c", "value": 30},
                             {"name":"d", "value": 40}
                           ];
            coll.insertAll(toInsert);
            coll.findOne({"name":"c"}).chain((v1) {
                print("Record c: $v1");
                v1["value"] = 31;    
                coll.save(v1);
                return coll.findOne({"name":"c"});
            }).then((v2) {
                print("Record c after update: $v2");
                db.close();
            });   
        };
    
        db.open().then((c)=>simpleUpdate()); 
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I went through the documentation in http://www.opengroup.org/onlinepubs/009695399/functions/pthread_cond_wait.html but this is not mentioned explicitly. Any
I went through a similar question here . But I am yet not clear
I have went through to the T Apple's documentation for this error for adding
I'm trying to explore Skipfish by Google I went through their documentation , and
Yes, I've read the developer documentation and even went through a few tutorials... but
I went through this whole procedure http://www.hanselman.com/blog/WorkingWithSSLAtDevelopmentTimeIsEasierWithIISExpress.aspx a couple weeks ago and got https
As I went through this wonderful blog by Mike McCandless explaining the power of
I went through documentation of cybersource api to set it up with PHP on
I have went through google api documentation and so many reference links. but i
I went through many posts and couldn't find a solution. (I came across with

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.