カラム
特定のテーブルで利用可能なカラムは、"sys_tablecolumns"と呼ばれるシステムテーブルからフェッチされます。
WHERE 条件で特定のテーブル名を指定すると、カラム情報をフェッチするテーブルを制限することができます。
import cdata.graphql as mod
conn = mod.connect("AuthScheme=OAuth;OAuthVersion=2.0;CallbackURL=http://localhost:33333;OauthClientId=MyOAuthClientId;OAuthClientSecret=MyOAuthClientSecret;OAuthAccessTokenURL=https://mysite.com/login/oauth/access_token;")
cur = conn.cursor()
cmd = "SELECT * FROM sys_tablecolumns WHERE TableName = 'Users'"
cur.execute(cmd)
rs = cur.fetchall()
for row in rs:
print(row)