CData Python Connector for Workday

Build 25.0.9540

データの変更

"execute()" を呼び出してセッションで個別にコマンドを実行できます。

テーブルオブジェクトの取得

このメソッドに提供されるクエリは、マップされたクラスの関連するTable オブジェクトを使用して構築されます。このTable オブジェクトは、以下のように、マップされたクラスのメタデータフィールドから取得されます。

[CData].[Human_Resources].Workers_table = [CData].[Human_Resources].Workers.metadata.tables["[CData].[Human_Resources].Workers"]

テーブルオブジェクトが取得されると、次の方法で書き込み操作が実行されます。クエリは"commit()" を呼び出すことなく即座に実行されます。

Insert

次の例では、テーブルに新しいレコードを追加します。

session.execute([CData].[Human_Resources].Workers_table.insert(), {"Worker_Reference_WID": "Jon Doe", "Legal_Name_Last_Name": "John"})

Update

次の例では、テーブル内の既存のレコードを変更します。

session.execute([CData].[Human_Resources].Workers_table.update().where([CData].[Human_Resources].Workers_table.c.Id == "0e44c92412d34b01ace61e80a47aaf6d").values(Worker_Reference_WID="Jon Doe", Legal_Name_Last_Name="John"))

Delete

次の例では、テーブルから既存のレコードを削除します。

session.execute([CData].[Human_Resources].Workers_table.delete().where([CData].[Human_Resources].Workers_table.c.Id == "0e44c92412d34b01ace61e80a47aaf6d"))

Copyright (c) 2026 CData Software, Inc. - All rights reserved.
Build 25.0.9540