priitj / whitedb

WhiteDB memory database
http://whitedb.org/
GNU General Public License v3.0
608 stars 78 forks source link

How to update a query #23

Open GPrathap opened 9 years ago

GPrathap commented 9 years ago

I created JSON data from a file and insert it into the database as structured records. How am I update that structured record. Still I have not find any API functions for that .

This is my JSON file

        {
           "userDetails":
             {
                      "username":"Jobs",
                      "password":"abc123",
                      "cookie":"fdsghfdshgfjghfkjghjkjhl",
              },
         "applicationsInfo":[
          {
              "application":"app1",
              "tier":"gold",
              "consumerKey" :"werewr4sdrgfdsy5tgfhgfhjtg7gjh",
          }
         ]
       }

I want to push application details to applicationsInfo and want to update cookies . Can I do those operations with current API .

priitj commented 9 years ago

Hi,

handling JSON is very much incomplete. API functions for things like you've described do not exist, the only part that works reasonably is the parser; query code is also there but undocumented.

I'll go over the project website and remove the references to JSON support (not sure exactly why it's mentioned there, perhaps because it was work in progress before 0.7) and put a notice in the docs to clarify the current status.

GPrathap commented 9 years ago

Yeap, It is really important mention about JSON support in docs. Because I am to use this database system for my project. Now I can not (: