I notice that there appeared to be general agreement on having a single SQL block in to which the user would type their SQL query. That doesn't seem consistent with the general idea of App Inventor, which is to replace textual code with blocks.
... but it would be hard to create SQL blocks and in any case can't this just be for advanced users?
See latest version on my AI instance here: http://hosseinamerkashi.appspot.com
You can use my sample app from HERE to experiment with.
-Hossein.
--
You received this message because you are subscribed to the Google Groups "App Inventor Open Source Development" group.
To unsubscribe from this group and stop receiving emails from it, send an email to app-inventor-open-so...@googlegroups.com.
To post to this group, send email to app-inventor-o...@googlegroups.com.
Visit this group at http://groups.google.com/group/app-inventor-open-source-dev?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
I like the general direction of James' proposal.It would be nice to think about how to set reasonable defaults for as many of the sockets as possible so that users doing simple things wouldn't need to plug in a bazillion blocks ;-)
Many such defaults would come for free, as normal SQL defaults, some might have to be thought about more deeply. For example, App Inventor play pretty fast and loose with types by doing automatic conversions. It would be nice if there were some way to do something similar here. One idea might be automatically generate the columns/fields from the first INSERTs.
-Mark
To unsubscribe from this group and stop receiving emails from it, send an email to app-inventor-open-source-dev+unsub...@googlegroups.com.
Hey guys,
Gary, I can brief you on the CDK (in a different thread), but to make
any progress in this project, we'd expect at least a 10 hours/week
commitment from someone. It is a complex project, touching most parts
of the system to some extent, so whoever takes it on is going to need
a good understanding of every part of app inventor. First step would
be to write a component, and after that, to make some modifications in
the Designer, and feel comfortable with how the appengine project is
structured. Let me know if you can commit the time to it, and I'll
open another thread.
> email to app-inventor-open-source-dev+unsub...@googlegroups.com.
Hey guys,
I like the idea of having both alternatives. I also agree with the
idea that if you don't know any SQL, you will rarely want to do a JOIN
operation. Most people will use just the one table and put all the
data in there, in a de-normalised form. But in that case, how is that
different from storing a list in TinyDB? For writing data, I don't see
a difference; for retrieving data, a select with a where clause is a
lot more flexible, but that could be added to TinyDB as a new
method... are there any other obvious benefits I am missing?
I realise that the data models are different, and in TinyDB there is
no structure as such (like a fixed table definition), but that has
both pros and cons, right?
--
You received this message because you are subscribed to the Google Groups "App Inventor Open Source Development" group.
To unsubscribe from this group and stop receiving emails from it, send an email to app-inventor-open-so...@googlegroups.com.
> To post to this group, send email to
> app-inventor-o...@googlegroups.com.
> Visit this group at
> http://groups.google.com/group/app-inventor-open-source-dev?hl=en.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
--
You received this message because you are subscribed to the Google Groups "App Inventor Open Source Development" group.
To unsubscribe from this group and stop receiving emails from it, send an email to app-inventor-open-source-dev+unsub...@googlegroups.com.
I'm an experience programmer but have never used Java. I now SQL quite well.App inventor is one of the most innovative and easy to use tools to create a fully working and complex app very quickly. I don't really need to move to Java at the moment because I have been create work around to achieve everything I want app inventor to do since I started using in 2011. For example even though app inventor only has a player with no sound effects it quite easy to add echo and chorus sound effects by adding 2 players playing the same mp3 file with a delay timer delay. Creating custom controls that don't exist in app inventor is pretty easy like rotating knobs, option button, target pads, etc.My point being even though App Inventor was design initially for non programs to learn how to program, I think it has a much wider audience. I think as long as there is an advanced tab in app inventor for features like SQL Lite this would be a plus.
To unsubscribe from this group and stop receiving emails from it, send an email to app-inventor-open-so...@googlegroups.com.
We've been having a spirited discussion about the SQLite component in the #appinventor IRC channel on freenode.net. It was triggered by this comment of mine:I notice that there appeared to be general agreement on having a single SQL block in to which the user would type their SQL query. That doesn't seem consistent with the general idea of App Inventor, which is to replace textual code with blocks.
I would (perhaps unfairly) summarize the replies as:
... but it would be hard to create SQL blocks and in any case can't this just be for advanced users?Feel free to correct my summary ;-)I've also attached a transcript of the IRC segment dealing with this, in case you want to see the full discussion.-Mark
On Sun, Apr 28, 2013 at 7:29 PM, M. Hossein Amerkashi <kkas...@gmail.com> wrote:
See latest version on my AI instance here: http://hosseinamerkashi.appspot.com
You can use my sample app from HERE to experiment with.
-Hossein.
--
You received this message because you are subscribed to the Google Groups "App Inventor Open Source Development" group.
To unsubscribe from this group and stop receiving emails from it, send an email to app-inventor-open-source-dev+unsub...@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to app-inventor-open-so...@googlegroups.com.
Visit this group at http://groups.google.com/group/app-inventor-open-source-dev.
Aren't we just making things too complicated? TinyDB is already very usable. TinyDB just needs these 2 methods.StartsWith (Text tag) this should a return a List so we can use the built in List capabilitiesContains (Text tag) this should a return a List so we can use the built in List capabilitiesI checked out the code for TinyDB and it uses sharedPreferences.getString. sharedPreferences.getStringSet could be used to retrieve all the stored records with the filters applied.
Right now TinyDB constructor used "TinyDB" as the preference name, this means that all the apps preferences are stored in 1 file. If we allow the constructor to have the filename as a parameter then we can split "tables" into multiple preference files.
I would love to work on this if someone can tell me if I am on the right track.If the AppEngine Datastore works without SQL and JOINS, then TinyDB should work just fine.
Wondering what would be be the gain in having more than 1 file... it
would complicate the blocks, cause you would have to specify which
file to use, but the only advantage I can see is that you could use
the same tag in two files... would that make it more confusing? Am I
missing something?
I agree with Ryan that API 11 is not ideal, but if you can replicate
the functionality for older devices, then it could be good. Also agree
on SQL and key-value stores having its place. In my opinion, the main
problem with tinyDB is not the storage part, but the manipulation of
the information, which is a limitation that you won't find working
with a kv store in a textual language.
If you want to work on anything at all AI related, feel free to use
this forum for questions; we'd be all very happy to help out (well,
shouldn't talk for everyone, but I definitely would!).
>>>> an email to app-inventor-open-source-dev+unsub...@googlegroups.com.
>>>> To post to this group, send email to app-inventor-o...@googlegroups.com.
>>>> Visit this group at
>>>> http://groups.google.com/group/app-inventor-open-source-dev?hl=en.
>>>> For more options, visit https://groups.google.com/groups/opt_out.
>>>>
>>>>
>>>
>>>
> --
> You received this message because you are subscribed to the Google Groups
> "App Inventor Open Source Development" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to app-inventor-open-source-dev+unsub...@googlegroups.com.