Пример #1
0
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
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]