Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re^3: Creating a perl delete statement with MongoDB

by thanos1983 (Parson)
on Jul 20, 2017 at 13:36 UTC ( [id://1195609]=note: print w/replies, xml ) Need Help??


in reply to Re^2: Creating a perl delete statement with MongoDB
in thread Creating a perl delete statement with MongoDB

Hello again eOs,

What I would do in your case is try to create a minimal working example for everyone here to play. For example, create db, insert data, then retrieve data, delete and retrieve again.

It is really difficult to guess what is returned and what it should be deleted (at least to me). You have the code in you node and you can execute it at any time but we do not have it, so guessing is not the best way to proceed.

Help us to help you, BR.

Seeking for Perl wisdom...on the process of learning...not there...yet!

Replies are listed 'Best First'.
Re^4: Creating a perl delete statement with MongoDB
by e0s (Novice) on Jul 20, 2017 at 13:44 UTC
    Thanks for the reply but I am not sure what you mean. For example inserting any numeric character would pull from the fruit_ids table and entering 'banana' would pull a result from the fruit_names table. This exercise is very hypothetical so there is no actual DB that I am querying from as of yet. I am just trying to create a blueprint of what the code would possibly look like. Would it be possible to continue along just taking some of this for face value? upon deletion, I am only attempting to return a result which indicates the fruit name or fruit ID was removed from the DB.

      Hello eOs

      What I meant to say is, we need you to replicate your scenario with executable code. But based on your update/answer This exercise is very hypothetical so there is no actual DB that I am querying from as of yet. how can we help you?

      From my point of view (maybe I am wrong), it looks like you have a theoretical idea on your mind and you are missing the deleting part. If this is the case why you do not create an actual sample of code as I said before (create DB, insert data, fetch data, delete data, fetch data to check the delete part(s)).

      If you have no real time data and indexes, columns, tables etc. how can we help?

      How can we replicate your problem? Should we create all of these data for you?

      I hope now my answer is more clear. Let me know in case that it is not clear again.

      Seeking for Perl wisdom...on the process of learning...not there...yet!

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (7)
As of 2024-04-23 15:05 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found