Home Reference Source Repository

References

Class Summary

Static Public Class Summary
public

Supermodel Adapter for RethinkDB.

Function Summary

Static Public Function Summary
public

connect(r: *, objectPattern1: {"host": *, "port": *, "db": *, "maxAttempts": *, "baseTimeout": *, "maxTimeout": *}): *

connect to the db, using .attemptToConnect internally.

public

ensureDB(r: *, conn: *, dbName: *): *

makes sure a db exists by attempting to create it and suppressing the error if it already exists.

public

ensureIndex(r: *, conn: *, tableName: *, indexName: *, indexCreateOptions: ...*): *

ensure that an index exists on a table, creating if necessary.

public

ensureTable(r: *, conn: *, tableName: *): *

makes sure a table exists by attempting to create it and suppressing the error if it already exists.