AsteroidDB - Simple but Powerful Database Service for your apps

Hello,

I got a problem with “.GetData”… There is no event raised!
As you can see I generated 100 simple Tags.
.GetTag - works fine

  • .Count - works fine
  • .GetAll - also works as expected
  • .GetData - no event is raised???

    Even if the result has not yet been parsed correctly, at least some result would have to be returned.
    image
    But “Label1.Text” is not changed to “Event raised!” (without taking care of “action” or “result”).
    Whats going wrong???
    PS: I’m using heroku for hosting.

You need to set a password for database in order to use this block, this is for protecting your data. You should also add OnError event to know the errors next time.

Yes, that’s it and solved the Problem.
Thank you :+1:

1 Like

Hello Yusuf,

strange thing.
I tried to store data to an Asteroid DB. That’s no Problem - but the value I want to store isn’t a single one. In the real App it is a mixture of single values and list’s and also list of lists.


In Tiny_Web_DB storing and reading back is no Problem (it’s not the full code but I think you can imagine what I mean)
image

Now I would like to switch to AsteroidDB because of the much more features but the reading back is not working well.
First try with a very simple list

The reading back looks like a list but kodular do not like it :wink:
image

Is it possible to read it back an get exactly what i stored before?

Greetings
Holger

Actually that’s how App Inventor Lists looks, however as AsteroidDB can run outside of App Inventor also (for example you can also make a website of your app which connects to AsteroidDB), I prefer storing more universal data type which every programming language can parse, for example you should store your data as JSON Array instead of App Inventor Lists. There is a component called JSON component, you can use it. Let me know if you need more help about it.

Or I can add a block which allows you to convert lists to readable format by AsteroidDB.

Hope this helps!

3 Likes

Of course it makes a lot of sense to use standards. however, I am not familiar with JSON. I think I need a push in the right direction.
What would the writing routine for my data set look like? and how can I read it back later?


I took a look at JSON. Very interesting, but JSON offers much more than I need here. Nevertheless, that would also benefit in the future.

A block for writeing/reading lists to/from AsteroidDB would be perfect :smile: :+1: - also for other users.

PS
I find the JSON component but no idea how to use it in the right way.

1 Like

You want to be using a Web component and its JSON Parse block. :slight_smile:

1 Like

3 posts were split to a new topic: How you can make extension by Python

Hi!

Is it possible to get a random value from the database without getting all the values first?

No, sadly.

1 Like

Thank you. Good job anyway on this awesome expansion!

1 Like

I’m already registered and don’t know how to use it. Who can help me?Is there free?

Uploading: qweqwe.png…

What is the reason for the unsuccessful creation?

@yusufcihan You have to update runtime.txt to the latest Python buildpack.

1 Like

hey @yusufcihan i think this should be in Extensions category

I don’t think it matters which category it is. It’s also kind of debatable since yes it is an extension, but it’s also a database solution derived from another.

1 Like

Can you help me?

What help you want kindly mention it

1 Like

See what I posted earlier

1 Like

You’ll have to wait.

1 Like