Questions tagged [dbobject]
24 questions
0
votes
2 answers
Trying to make a work around for the mysqli_real_escape_string
So currently I have my code in procedural format so inorder to prevent myself from adding the "link" in the mysqli_real_escape_string function I've made a method that looks like this:
// Used to create a legal SQL string that you can use in an…

OverBakedToast
- 139
- 10
0
votes
1 answer
Java MongoDB cannot query with String criteria in collection
I have a collection in DB and can get it to a DBCollection just fine.
But when I try to query it with a String field, it doesn't return any result.
However, when I query with an Integer field, that query returns results for the same dataset.
Here…

neocorp
- 569
- 7
- 20
0
votes
1 answer
Issue - DBAccess ORM create table with declare bool type with swift
i am facing issue with create table in DBObject (DBAccess ORM) with declare bool type and Int type field, and also i am not able to declare "description" filed.
//Swift Code:-
import UIKit
@objc(Circlelist)
class Circlelist: DBObject {
dynamic var…

AtulParmar
- 4,358
- 1
- 24
- 45
0
votes
0 answers
Passing List into View - Play Framework/MongoDB
I'm using the Play Framework in conjunction with MongoDB. The View below has a loop that cycles through my collection and displays all documents, however, is there anyway to access specific fields only within the DBObject, or to totally eradicate…

drizzy
- 139
- 2
- 15
0
votes
1 answer
MongoDB Java driver edit a cursor after it has been retrieved
In my MongoDB Java driver I retrieve some documents with a query.
DBCursor cursor = dbCollection.find(query).sort(new BasicDBObject("date", -1));
return JSON.serialize(cursor);
This works fine it returns the following:
{
"isSuccessful":…

ErikBrandsma
- 1,661
- 2
- 20
- 46
0
votes
2 answers
Constructing a Mongo DBObject from single-quote JS object with escaped characters?
This question relates to the Java API / Driver, but may also be relevant to interfacing Mongo in other languages. I am new to Mongo and making some assumptions, so please correct me if I'm mistaken. A lot of documentation I'm finding, and…

blong
- 2,815
- 8
- 44
- 110
0
votes
2 answers
How can I retrieve DBObjects that contains a substring of a search-word?
I am using MongoDB with Java Driver (http://tinyurl.com/dyjxz8k). In my application I want it to be possible to give results that contains a substring of the users search-term. The method looks like this:
*searchlabel = the name of a…

Maiken Beate Fjellanger
- 47
- 1
- 9
-1
votes
1 answer
Get a list of fields in MongoDB Document?
Is it possible to get a list of all the fields in a DBObject? I have searched through the documentation and can't find anything. Thanks.

user3313539
- 103
- 1
- 2
- 5
-1
votes
1 answer
BasicDBObject or QueryBuilder and some newbie questions of Java and mongo
hi I'm a fresh newbie to mongodb
Q1
using
query=new BasicDBObject();
query.put("i", new BasicDBObject("$gt",13));
and
query=new QueryBuilder().put("i").Greaterthan(13).get()
is there any difference inside of the system?
Q2
I've created a…

Kitanski
- 49
- 3