Discuss Scratch

jonascj
New to Scratch
2 posts

Database connectivity from Scratch?

Dear everyone,

I am looking for some way to interact with a database from Scratch, so far my search haven't yielded any results apart from Scratch Modifications (Mods).

Anyone doing database stuff from Scratch and if yes, how so? Ideally I would like to connect to a local SQLite (single file) database, but it could also be a remote database.

Scratch Modifications might very well serve for what I am trying to do since they can contain arbitrary javascript or python code, I'm just asking because it seems like something someone might already have accomplished.

Best regards
/ Jonas

TheGameBuilder
Scratcher
100+ posts

Database connectivity from Scratch?

It would be possible using cloud variables, as they can be modified from external servers. I heard somewhere that this practice(of externally changing cloud variables) is not allowed anymore, though.

jonascj
New to Scratch
2 posts

Database connectivity from Scratch?

Thank you for your reply TheGameBuilder.

https://wiki.scratch.mit.edu/wiki/Cloud_Data

Cloud variables seem interesting for some things, but not playing with SQL since they are just global (across all instances of a scratch project running) variables, not a database that can be queried.
333222111q
Scratcher
4 posts

Database connectivity from Scratch?

I made a project about this. This is the link: https://scratch.mit.edu/projects/382229798/editor/
badatprogrammingibe
Scratcher
500+ posts

Database connectivity from Scratch?

jonascj wrote:

Dear everyone,

I am looking for some way to interact with a database from Scratch, so far my search haven't yielded any results apart from Scratch Modifications (Mods).

Anyone doing database stuff from Scratch and if yes, how so? Ideally I would like to connect to a local SQLite (single file) database, but it could also be a remote database.

Scratch Modifications might very well serve for what I am trying to do since they can contain arbitrary javascript or python code, I'm just asking because it seems like something someone might already have accomplished.

Best regards
/ Jonas

There used to be an easy way to use arbitrary javascript in scratch 2.0, using extensions. (One example being: https://scratch.mit.edu/discuss/topic/147934/)

However this is no longer possible with scratch 3.0.
Perhaps you could use ScratchX (a fork of Scratch 2.0 which still supports extensions), or SNAP!, a derivative of scratch that has procedures for running arbitrary javascript.
mrcringekidyt
Scratcher
4 posts

Database connectivity from Scratch?

333222111q wrote:

I made a project about this. This is the link: https://scratch.mit.edu/projects/382229798/editor/
What.

Powered by DjangoBB

Standard | Mobile