Coder Social home page Coder Social logo

rethink-swift's Issues

Example code

Hi,
I'm trying to implement a realtime application with rethinkdb and your driver.
What I would like to achieve as first task Is to connect to the database and wait for changes in a table.
Actually the connection is fine but waiting for changes seems not to work.
Do you have any example app that covers the basics of the driver?
This is my code:
´´´
R.connect(URL(string: "rethinkdb://192.168.250.96:28015")!, user: "user1", password: "user1") { err, connection in
assert(err == nil, "Connection error: (err)")

        R.db("test").table("games").indexWait().run(connection) { response in
            assert(!response.isError, "Failed to wait for index: \(response)")
            R.db("test").table("games").changes().run(connection){ (response:ReResponse) in
                print ("There's a change!!")
            }
        }
        
        
        
    }

´´´
I would expect that any time I insert something in the table "There's a change!!" is printed in console , but that's not actually happening!

Thanks a lot.

add support for orderBy, without

Hi -- thanks for this library! I'm just getting started with rethink and hoping to use it in a swift project.

I added support for a few new queries -- orderBy, without, getAll with array argument. I'm probably going to need to add pluck as well.

I'm on the last 2.2 commit -- I'm not sure if you'd welcome a pull request that adds these to the 2.2 branch?

Not running in device

Hi, Rethink is perfectly working in simulator but not in the device. Issue is shown in the image attached.
screen shot 2019-01-25 at 11 54 27 am

Swift on Linux support

Hi,

I've just come across your project, searching for RethinkDB drivers for Swift on Linux.

Is that in the pipe, or something I could contribute with?

  • Building Swift RethinkDB on Linux with Swift 3.0
  • Support for Swift package manager

/Tommy

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.