コード例 #1
0
ファイル: orders_table.py プロジェクト: g-k/RJMetrics-py
def sync_order(client, order):
    order["keys"] = ["id"]
    return client.push_data("orders", [order])[0]
コード例 #2
0
def sync_order(client, order):
    order["keys"] = ["id"]
    return client.push_data("orders", [order])[0]
コード例 #3
0
ファイル: users_table.py プロジェクト: RJMetrics/RJMetrics-py
def sync_user(client, user):
    # `id` is the unique key here, since each user should only
    # have one record in this table
    user["keys"] = ["id"]
    # table named "users"
    return client.push_data("users", [user])[0]