Re: [racket-users] Anyone using MongoDB 3.2.15 with DrRacket 6.9?

2017-08-12 Thread Jay McCarthy
On Sun, Aug 6, 2017 at 3:49 PM, Cecil McGregor  wrote:
> The output is as expected as well as the db validity:
> (This was performed after  running db.dropDatabase() )
> Welcome to DrRacket, version 6.9 [3m].
> Language: racket, with debugging.
> '#("Can't wait!" "Another blog?")
>> (mongo-db? d)
> #t
>> (mongo-db-collections d)
> '()<== Should show "posts" as a collection
>>
>> (mongo-db-valid-collection? d "posts")
> #t <== Internally it know "posts" exists
>
> The mongo-db-collection should definitely show "posts"
> as a collection. Running the mongo shell shows post:
>
> use awesome-dot-com
> switched to db awesome-dot-com
> awesome-dot-com> show collections
> posts<=== As expected

mongo-db-collections is getting this information from
.system.namespaces which has been deprecated since MongoDB
3.0

> A few other calls don't quite seem to work either.

Which ones?

> My question:
>
> This code is old and written for Mongo 1.3.
> Does it work with the current 3.2.15 version?
> (Apparently not. Am I wasting my time or should I be
> prepared to  start hacking an upgrade?)

It works, but anything that MongoDB has broken backwards compatibility
with in the API won't work. I did a brief perusal of the docs and it
doesn't appear that any essential features are broken. It seems like
they just changed how some reflection happens.

> Is anyone using this 2011 code?

Yup

> Does better documentation exist anywhere? (I can't find it
> and I confess the current docs leave much to be desired.)

The documentation is here: https://docs.racket-lang.org/mongodb/index.html

I expect you will mainly care about the basic operations --
https://docs.racket-lang.org/mongodb/Basic_Operations.html -- what is
something you wish it contained? It is extensive and documents
everything that is supported. (Although, of course, you have to decide
how you want to use it.)

Jay

-- 
-=[ Jay McCarthy   http://jeapostrophe.github.io]=-
-=[ Associate ProfessorPLT @ CS @ UMass Lowell ]=-
-=[ Moses 1:33: And worlds without number have I created; ]=-

-- 
You received this message because you are subscribed to the Google Groups 
"Racket Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to racket-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [racket-users] Anyone using MongoDB 3.2.15 with DrRacket 6.9?

2017-08-07 Thread Cecil McGregor
On Monday, August 7, 2017 at 9:01:39 AM UTC-7, Ryan Culpepper wrote:
> On 08/06/2017 05:49 PM, Cecil McGregor wrote:
> > [...]
> > What are other people using for a NoSQL racket experience?
> 
> Are you looking for no schema or no ACID? If the latter, the git version 
> of the db library now has experimental support for Apache Cassandra.
> 
> Ryan

I was hunting for a no schema solution. I've used MongoDB in the past
with great success and saw it for DrRacket. I'll look into using the
redis package. At my stage of racket experience, I'm not ready to
delve into the source code of MongoDB without spending lots of
time.

-- 
You received this message because you are subscribed to the Google Groups 
"Racket Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to racket-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [racket-users] Anyone using MongoDB 3.2.15 with DrRacket 6.9?

2017-08-07 Thread Ryan Culpepper

On 08/06/2017 05:49 PM, Cecil McGregor wrote:

[...]
What are other people using for a NoSQL racket experience?


Are you looking for no schema or no ACID? If the latter, the git version 
of the db library now has experimental support for Apache Cassandra.


Ryan

--
You received this message because you are subscribed to the Google Groups "Racket 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to racket-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.