CData Python Connector for SAP Gateway

Build 23.0.8839

接続

cdata で接続sapgateway モジュール:

コネクタのモジュールは、データソースとの接続を確立するために直接使用されます。これは、接続文字列を引数として使用することによって行なわれます。次に例を示します。
import cdata.sapgateway as mod
conn = mod.connect("InitiateOAuth=GETANDREFRESH;User=user;Password=password;URL=https://sapes5.sapdevcenter.com/sap/opu/odata/IWBEP/GWSAMPLE_BASIC/")

接続が作成されると、後続のSQL クエリの実行に使用できます。

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