Jun
Jun
CDCloudflare Developers
Created by wunn_ on 12/23/2024 in #durable-objects
Tutorial with SQL API · Cloudflare Durab...
13 replies
CDCloudflare Developers
Created by wunn_ on 12/23/2024 in #durable-objects
Tutorial with SQL API · Cloudflare Durab...
I don't think we have a specific page dedicated to DO <> Remix CF Pages, but I believe the binding method is consistent
13 replies
CDCloudflare Developers
Created by wunn_ on 12/23/2024 in #durable-objects
Tutorial with SQL API · Cloudflare Durab...
I think those two exampels might be useful
13 replies
CDCloudflare Developers
Created by wunn_ on 12/23/2024 in #durable-objects
Tutorial with SQL API · Cloudflare Durab...
Hmm let me see what I can find
13 replies
CDCloudflare Developers
Created by wunn_ on 12/23/2024 in #durable-objects
Tutorial with SQL API · Cloudflare Durab...
Re: toml, yeah maybe just carry on? We always make sure to test these tutorials, so it should work (though please let me know if it doesn't)
13 replies
CDCloudflare Developers
Created by wunn_ on 12/23/2024 in #durable-objects
Tutorial with SQL API · Cloudflare Durab...
Hey! Is this what's being shown in your wrangler.toml file?
13 replies
CDCloudflare Developers
Created by Burrito on 12/18/2024 in #r2
R2's workers API documentation does not
Thanks - I've added this to my backlog! 😄
4 replies
CDCloudflare Developers
Created by Burrito on 12/18/2024 in #r2
R2's workers API documentation does not
Also, for docs stuff, feel free to @ me 😄 - even if it's not a product I support, I'll create a ticket for it internally
4 replies
CDCloudflare Developers
Created by Burrito on 12/18/2024 in #r2
R2's workers API documentation does not
Hey, can you send me the link to the API doc you are referring to here? (ie Are you talking about the REST APIs? Or the Worker Bindings API?)
4 replies
CDCloudflare Developers
Created by Someone on 12/13/2024 in #d1-database
How would I get just the `results` from
5 replies
CDCloudflare Developers
Created by Someone on 12/13/2024 in #d1-database
How would I get just the `results` from
Hey! Like @lambrospetrou pointed out, the response is an object, so you can try resonse.results if you're using JS. I had a quick go on ChatGPT, maybe this will work?
results_array = response["results"]
print(results_array)
results_array = response["results"]
print(results_array)
Full code:
response = {
"success": True,
"meta": {
"served_by": "v3-prod",
"duration": 0.1977,
"changes": 0,
"last_row_id": 0,
"changed_db": False,
"size_after": 16384,
"rows_read": 1,
"rows_written": 0
},
"results": [
{"test": "a"}
]
}

# Extract the "results" array
results_array = response["results"]
print(results_array)
response = {
"success": True,
"meta": {
"served_by": "v3-prod",
"duration": 0.1977,
"changes": 0,
"last_row_id": 0,
"changed_db": False,
"size_after": 16384,
"rows_read": 1,
"rows_written": 0
},
"results": [
{"test": "a"}
]
}

# Extract the "results" array
results_array = response["results"]
print(results_array)
[{'test': 'a'}]
[{'test': 'a'}]
5 replies
CDCloudflare Developers
Created by harshil1712 on 12/4/2024 in #durable-objects
We have a PR up to Serialize Attachement
5 replies
CDCloudflare Developers
Created by Burrito on 11/13/2024 in #d1-database
Hmm unless I'm missing something, this
12 replies