CData Python Connector for MarkLogic

Build 24.0.9062

接続の確立

コネクタ内で利用可能なオブジェクトは、"cdata.marklogic" モジュールからアクセスできます。モジュールのオブジェクトを直接使用するには:

  1. モジュールを以下のようにインポートします。
    import cdata.marklogic as mod
  2. 接続を確立するには、以下のような適切な接続文字列を使用してコネクタオブジェクトからconnect() メソッドを呼び出します。
    mod.connect("User='myusername';Password='mypassword';Server='marklogic'")

MarkLogic への接続

Picking an API

The CData Python Connector for MarkLogic offers access to both the REST and ODBC APIs for MarkLogic. Please see 適切なAPI の選択 for a discussion on which API is right for your use case.

Connection Details

Regardless of which API you are connecting to, you will need to include the following connection details:

  • Server - The server being connected to.
  • Database - (Optional) The specific database to connect to.
  • Port - (Optional) The specific port to use if the default port for the selected API is not being used default.

Create an ODBC Server

If connecting to the ODBC API, please follow the guide in MarkLogic's official website on how to create an ODBC Server, https://docs.marklogic.com/guide/admin/odbc.

Authenticating to MarkLogic

To authenticate to MarkLogic, specify the following connection properties:

  • User - The user to authenticate as.
  • Password - The password of the user.

Copyright (c) 2024 CData Software, Inc. - All rights reserved.
Build 24.0.9062