Writing to SQLite table

Clovertech Forums Read Only Archives Cloverleaf Cloverleaf Writing to SQLite table

  • Creator
    Topic
  • #53930
    Mike Keys
    Participant

      Is it possible to create an XLATE that not only wites certian fields from  VRL file, but also adds, updates, or removes entries from an SQLite table?

      I’m thinking the answer to this is yes, just trying to picture how it would be structured in an XLATE. I assume a pre-proc in a route to update the DB and copy statements within the XLATE to write specific fields out to an audit file?

      Mike Keys

    Viewing 3 reply threads
    • Author
      Replies
      • #79572
        bill bearden
        Participant

          Mike,

          It sounds like what you are saying is possible. Can you be more specific about what you are trying to do?

          You might be able to do it all in an Xlate.

          Bill

        • #79573
          Mike Keys
          Participant

            Bill,

            We just started exploring using SQLite. We are currently on 5.7 and I have 6.0.1 loaded on a local VM that I am testing with. Someone said that 5.7 came bundled with SQLite, but it isn’t in our installation.

            Anyway, we have numerous physician tables for various affiliations. What we want to do is create a single provider table that will emcompass all physicians, PA, NPs. We already have a thread that is used to create MFN staff update messages from a VRL file that is generated from a SQL DB trigger. This file is FTP’d on the back end to Cloverleaf.

            What I’d like to do is tap into this and use this file to pull out the various fields that we need to populate the SQLite table. Then, in our various XLATE’s we will have to insert code to replace the currently TABLE lookups, so that we are pulling data from the SQLite table.

            I’m envisioning an inbound thread that reads the VRL file from our HIS (containing provider updates from our DB trigger) and running a pre-proc that will either add, update, or remove/inactivate providers in the SQLite table. I’ll build an outbound file thread and a route that will copy pertinent info from the inbound VRL to a flat file for auditing purposes, so we can verify that changes to the SQLite table were actually made and agree with what changed in our HIS.

            Is this clear as mud?  ðŸ˜€

          • #79574

            Take a look at this post about SQLite: https://usspvlclovertch2.infor.com/viewtopic.php?t=6686

            -- Max Drown (Infor)

          • #79575

            SQLite does come installation with 5.7. From the command line, make sure you setroot first and then type sqlite. That should bring up the sqlite prompt.

            -- Max Drown (Infor)

        Viewing 3 reply threads
        • The forum ‘Cloverleaf’ is closed to new topics and replies.