CData Python Connector for Reckon Accounts Hosted

Build 23.0.8839

テーブルとビュー

コネクタには、データモデルで使用可能なテーブルとビューを検出するために使用されるシステムテーブルがあります。これらのシステムテーブルのうち、"sys_tables" および"sys_views" は、それぞれ使用可能なテーブルとビューに関する情報を取得するために使用されます。

テーブル


import cdata.reckonaccountshosted as mod
conn = mod.connect("SubscriptionKey=test;CountryVersion=2021.R2.AU;CompanyFile=Q:/CData Software.QBW;User=test;Password=test;InitiateOAuth=GETANDREFRESH;CallbackURL=http://localhost:33333;OAuthClientId=MyOAuthClientID;OAuthClientSecret=MyOAuthClientSecret;")
cur = conn.cursor()
cmd = "SELECT * FROM sys_tables"
cur.execute(cmd)
rs = cur.fetchall()
for row in rs:
	print(row)

ビュー


import cdata.reckonaccountshosted as mod
conn = mod.connect("SubscriptionKey=test;CountryVersion=2021.R2.AU;CompanyFile=Q:/CData Software.QBW;User=test;Password=test;InitiateOAuth=GETANDREFRESH;CallbackURL=http://localhost:33333;OAuthClientId=MyOAuthClientID;OAuthClientSecret=MyOAuthClientSecret;")
cur = conn.cursor()
cmd = "SELECT * FROM sys_views"
cur.execute(cmd, params)
rs = cur.fetchall()
for row in rs:
	print(row)

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