io.scalajs.npm.mongodb.Connection.scala Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of mongodb_sjs0.6_2.11 Show documentation
Show all versions of mongodb_sjs0.6_2.11 Show documentation
The official MongoDB driver for Node.js.
package io.scalajs.npm.mongodb
import scala.scalajs.js
import scala.scalajs.js.annotation.{JSImport, ScalaJSDefined}
/**
* MongoDB Connection
* @author [email protected]
*/
@js.native
@JSImport("mongodb", "Connection")
class Connection extends js.Object
/**
* Mongo Client Connection Options
* @author [email protected]
* @see [[https://mongodb.github.io/node-mongodb-native/api-generated/mongoclient.html#connect]]
*/
@ScalaJSDefined
class ConnectionOptions(var uri_decode_auth: js.UndefOr[Boolean] = js.undefined,
var db: js.UndefOr[js.Object] = js.undefined,
var server: js.UndefOr[js.Object] = js.undefined,
var replSet: js.UndefOr[js.Object] = js.undefined,
var mongos: js.UndefOr[js.Object] = js.undefined)
extends js.Object