Docs

xTinyDB

The xTinyDB is an experimental database service that communicates with a Web service to store and retrieve information. This micro document-based no-SQL database is inspired by the TinyWebDB component of MIT Appinventor. I have made many changes to CRUD data easily with a little bit of security and more features.

com.cttricks.xTinyDB.xTinyDB

General Information

Some basic informations related to this extension are given below, Containing version name, number of blocks, minimum sdk etc.

1

Version

1.0

Version Name

7

MinSDK

13

Blocks

stats

All Blocks

Here is a small eleboration of blocks of this extension.

METHODType - Set Value

ClearBucket

Use this method to delete/clear/remove an entire bucket from the database. In this block there are 0 parameters,


call

xTinyDB

.ClearBucket

METHODType - Set Value

ClearTag

Use this methos to delete/clear/remove one or more tags from a bucket. In this block there are 1 parameters,

tagany


call

xTinyDB

.ClearTag

tag

METHODType - Set Value

GetBucket

Use this method to get all tags, values, and sub buckets of a bucket. In this block there are 0 parameters,


call

xTinyDB

.GetBucket

METHODType - Set Value

GetValue

Use this method to get the value of one or more tags. In this block there are 2 parameters,

taganyvalueIfTagNotTheretext


call

xTinyDB

.GetValue

tag

valueIfTagNotThere

METHODType - Set Value

StoreValue

Use this method to store one or more value under respective tags. In this block there are 2 parameters,

taganyvalueany


call

xTinyDB

.StoreValue

tag

value

PROPERTIESType - read-write

AccessToken

xTinyDB Access Token.

Input Typetext


xTinyDB

.

AccessToken

PROPERTIESType - read-write

ProjectBucket

xTinyDB Access Token.

Input Typetext


xTinyDB

.

ProjectBucket

PROPERTIESType - read-write

ServiceURL

Property for ServiceURL.

Input Typetext


xTinyDB

.

ServiceURL

EVENTType - Mixed

Cleared

Get triggered when a tag or tags or an entire bucket is cleared/deleted. In this block there are 0 parameters,


when

xTinyDB

.Cleared

    do

    EVENTType - Mixed

    ErrorOccurred

    Get triggered when any internal or server error occurred. Mainly due to invalid credentials. In this block there are 1 parameters,

    messagetext


    when

    xTinyDB

    .ErrorOccurred

    • message

    do

    EVENTType - Mixed

    GotBucket

    Get triggered when got all tags, values, and sub buckets of a given bucket. In this block there are 3 parameters,

    taglistvaluelistsubBucketslist


    when

    xTinyDB

    .GotBucket

    • tag
    • value
    • subBuckets

    do

    EVENTType - Mixed

    GotValue

    Get triggered after getting the value of the tag from the server. In this block there are 2 parameters,

    taglistvaluelist


    when

    xTinyDB

    .GotValue

    • tag
    • value

    do

    EVENTType - Mixed

    ValueStored

    Get triggered when value is stored successfully on the server. In this block there are 0 parameters,


    when

    xTinyDB

    .ValueStored

      do

      1