Giter VIP home page Giter VIP logo

appcelerator.encrypteddatabase's People

Contributors

ashcoding avatar caspahouzer avatar cb1kenobi avatar cheekiatng avatar dependabot-preview[bot] avatar ewanharris avatar garymathews avatar hansemannn avatar hieupham007 avatar ingo avatar janvennemann avatar jawa9000 avatar jonalter avatar jquick-axway avatar lokeshchdhry avatar m1ga avatar mukherjee2 avatar sgtcoolguy avatar srahim avatar ssjsamir avatar vijaysingh-axway avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Forkers

markive m1ga

appcelerator.encrypteddatabase's Issues

null values are read as 127

Problem:

  • I recently started using this module, I was able to encrypt the db and make it work but then all the null values in the database , when fetched from the collection are shown as 127.
  • For example
    with sqlcipher-cli, when I do
> select * from Action where id=22;
[
  {
    uuid: '1f699926-68fc-4069-921d-873de4fcf93e',
    id: 22,
    application_id: 4,
    action_text: 'Action for regulatory notification 1',
    actionee_id: 1,
    due_date: '2028-04-28',
    closed_date: null,
    status: 'Open',
    created_at: '2022-02-01 07:48:00',
    updated_at: '2022-02-01 07:48:00',
    created_by: null,
    modified_by: null,
    form_record_id: null,
    form_record_uuid: null,
    requires_sync: null,
    deleted: null,
    linked_form_version_id: null,
    linked_form_record_id: null,
    linked_form_record_uuid: null,
    inform_question_uuid: null,
    is_inform_inline_action: null
  }
]

but same when I fetch from collection as

 var actionCollection = Alloy.createCollection("Action");
 unsyncActionCollection.fetch({
        query: "SELECT * FROM Action where id=22"
 });
console.warn(unsyncActionCollection.models);

I get this instead
attributes: { uuid: '1f699926-68fc-4069-921d-873de4fcf93e', id: 22, application_id: 4, action_text: 'Action for regulatory notification 1', actionee_id: 1, due_date: '2028-04-28', closed_date: 127, status: 'Open', created_at: '2022-02-01 07:48:00', updated_at: '2022-02-01 07:48:00', created_by: 127, modified_by: 127, form_record_id: 127, form_record_uuid: 127, requires_sync: 127, deleted: 127, linked_form_version_id: 127, linked_form_record_id: 127, linked_form_record_uuid: 127, inform_question_uuid: 127, is_inform_inline_action: 127 }

So, there is conflict datas, Any thoughts whats the issue here ?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.