Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

How to get collections from mongo using perl

by ravi45722 (Pilgrim)
on Sep 29, 2015 at 06:50 UTC ( [id://1143317]=perlquestion: print w/replies, xml ) Need Help??

ravi45722 has asked for the wisdom of the Perl Monks concerning the following question:

I need to get collection schema (collection names) from a DB in Mongo. I read the MongoDB & MongoDB::Examples. But I cant able to find it. Any suggestions please. Thanks in Advance

Replies are listed 'Best First'.
Re: How to get collection schema from mongo using perl
by Anonymous Monk on Sep 29, 2015 at 06:57 UTC

    I need to get collection schema (column names) from a DB in Mongo. I read the MongoDB & MongoDB::Examples. But I cant able to find it. Any suggestions please. Thanks in Advance

    :) Start at the beginning https://docs.mongodb.org/manual/

      Thanks for reply. My dead line is very near. I almost there. In my previous program I manually written all the collection(table) names into my program. But my mentor told that to get how many collections & collection names from DB through program.

Re: How to get collections from mongo using perl
by Anonymous Monk on Sep 29, 2015 at 11:20 UTC
    There are fifty ways to leave your lover, and five hundred ways to write a program. If you have a deadline looming, meet it. Do it the way you know how, and let the mentor's advice be used next deadline. Maybe.
Re: How to get collections from mongo using perl
by u65 (Chaplain) on Sep 29, 2015 at 11:19 UTC
Re: How to get collections from mongo using perl
by zwon (Abbot) on Sep 30, 2015 at 21:38 UTC

      Thank you for sharing your knowledge. If its possible I will my 8 (votes)++ here.

        Thank you for sharing your knowledge. If its possible I will my 8 (votes)++ here.

        That was really all you were after?

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://1143317]
Approved by Corion
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others surveying the Monastery: (6)
As of 2024-03-29 11:43 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found