trovares_connector.MongoODBCDriver

trovares_connector.MongoODBCDriver#

class trovares_connector.MongoODBCDriver(connection_string: str, include_id: bool = False)[source]#
__init__(connection_string: str, include_id: bool = False)[source]#

Initializes the driver class.

Parameters:
  • connection_string (str) – Standard ODBC connection string used for connecting to MongoDB. Example: ‘DSB=MongoDB;Database=test;Uid=test;Pwd=foo;’

  • include_id (boolean) – Include the MongoDB id field when transferring from MongoDB. If the id field is included, writing data back to the database will update the columns instead of inserting new rows. By default false.

Methods

__init__(connection_string[, include_id])

Initializes the driver class.

__init__(connection_string: str, include_id: bool = False)[source]#

Initializes the driver class.

Parameters:
  • connection_string (str) – Standard ODBC connection string used for connecting to MongoDB. Example: ‘DSB=MongoDB;Database=test;Uid=test;Pwd=foo;’

  • include_id (boolean) – Include the MongoDB id field when transferring from MongoDB. If the id field is included, writing data back to the database will update the columns instead of inserting new rows. By default false.