We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 40029
    • 52 Posts
    Hello everyone,

    I have finished the implementation of SQLite for MODx,
    in the last two days, I have debugged everything,
    specialy the step's installation. and everything seems fine.

    I have not had time to try, all Manager SQL sentence, but theoretically incompatibility issues are been resolved.

    Surely there are many points to be improved at the level of configuration
    but I've tested successfully on various platforms.

    OS and platforms:
    X86 PC: Matriux 1 krn2.6
    X86 PC: Lubuntu 12 krn3.0
    ARM Cortex-A8 N900: Maemo 5 krn2.6
    (Compatible 100% with BeagleBoard , PandaBoard, etc)

    apache2
    SQLite 3
    ext. php-sqlite

    I uploaded everything in a release-2.2 branch, this:

    https://github.com/RTOSkit/revolution/tree/sqlite-2.2

    So, I want to thank all MODx team for the splendid work done with the core,
    The truth was very simple to implement the database with PDO abstraction and without touch the core, it must be said that many files were ready for implementation.

    I hope that those who work with embedded platforms to take advantage of this implementation.

    Regards.
      Developer of RTOS and Drivers
      Specializes in portability of BSD/Linux
      • 39932
      • 483 Posts
      Kudos!! That's awesome! Congratulations to the MODx Team! Congratulations to rtoskit!

      What's left? Just SQL Server?
        Website: Extended Dialog Development Blog: on Extended Dialog
        Add-ons: AJAX Revolution, RO.IDEs Editor & Framework (in works) Utilities: Plugin Compatibility List
        Tutorials: Create Cross-Context Resources, Cross-Context AJAX Login, Template-Based Actions, Remove Extensions from URLs

        Failure is just another word for saying you didn't want to try. "It can't be done" means "I don't know how".
        • 22303 MODX Staff
        • 10,725 Posts
        This is indeed awesome @RTOSKit! Thank you for your proactive contribution. Is this ready to be integrated? Or are you waiting for some feedback before submitting a Pull Request? I'll review it and provide feedback if you are ready for it.

        @fuzzicallogic: SQL Server is already done. I am working with another contributor to complete PostgreSQL and Oracle drivers for both xPDO and MODX next.
          • 40029
          • 52 Posts
          Thanks for the congratulations. but really believe me MODx internal design makes many of these implementations have great facility.

          Who like me, loves BSD systems, he liked a lot the multilayer abstractions within MODx, everything has its place, and there is no jumping fools from a layer to another.

          If you repeat the greatest compliments I have to go to the MODx team and, of course including all community development and community support MODx.

          Quote from: fuzzicallogic at Aug 19, 2012, 07:27 AM

          What's left? Just SQL Server?

          SQL server?

          I'm sure you already have Revo, full implementation, or nearly so, with MSSQL. sqlsrv

          Not now!, I'm working and an vectors execution engine fully native for Revo,
          which allows secure transmissions to remote devices, with many encryption algorithms, symmetric key systems, and also complete public key mechanisms,

          An example of this kind service is the "reCaptcha" of Google, well with this
          " vectors engine" you can take your "snippets" and "chunks" MODx to a remote device, a remote site, or the same server, in complete safety, without worrying in developing MODx MVC2 mechanisms.
          The engine develops a secure framework for you to implement all the security features native to MODx.

          I am also healing the graphic look a lot simpler for all configurations. (There are many)
          I think in a couple of weeks I should be able to launch a beta,

          I pass him a "screenshot" of status application graphic
          ExtJS3 fully developed.

          Regards
          [ed. note: rtoskit last edited this post 14 years, 1 month ago.]
            Developer of RTOS and Drivers
            Specializes in portability of BSD/Linux
            • 40029
            • 52 Posts
            Quote from: opengeek at Aug 19, 2012, 11:18 AM
            This is indeed awesome @RTOSKit! Thank you for your proactive contribution. Is this ready to be integrated? Or are you waiting for some feedback before submitting a Pull Request? I'll review it and provide feedback if you are ready for it..

            Thank you.

            If it's really ready, but I think it has to control some integrations:


            • As I had some compatibility problems SQL language such as "max", "INTEGER PRIMARY KEY", etc.
              I worry that any Update or Insert statement using any keys are not compatible with sqlite3


            • The safety mechanism of the database,
              Currently the database is in a secure directory within the directory "core" and only a localhost callback accessed and could implement the use of user and password in the url, but you have to consider how best it can be also outside of apache and linux.


            • Charsets properly implemented, that I am proving now, theoretically sqlite, should be complete implementation of the utf8 and utf16
              REVO (PDO) effectively creates a database UTF-8 but I definiately check if the data are treated.


            • The installation panel , you should add a check for the existence of the directory of the database and the "hostname" field in the case of sqlite is used to move to another directory, and it may be better to rename the field label.


            • This night had much sleep and been doing a lot revert to the repo
              I will look if all changes are in correctly added

            I'm checking that can be integrated successfully, and I'm also hoping that someone from the MODx team, see if everything was done correctly.





            Quote from: opengeek at Aug 19, 2012, 11:18 AM

            I am working with another contributor to complete PostgreSQL and Oracle drivers for both xPDO and MODX next.
            Perfect Idea! These are much files to write smiley


            Regards.
              Developer of RTOS and Drivers
              Specializes in portability of BSD/Linux
              • 40029
              • 52 Posts
              Hello everyone,

              Is very close wink

              Ok, I've done several tests, and improved many points I will list here:


              • Installation:
                     Panel customization for sqlite,
                     creating tables (all the inconsistencies have been resolved in abstraction).


              • Security DB:
                     Protected directory, and protected access, I think this is the best option
                     and can be deployed on any webserver


              • Charsets:
                     Currently only with UTF-8, I have to finish the tests for
                     whether accepts "unicode" or just "general"


              • Out of abstraction:
                     The SQLite does not allow the "IF" statement and found a sentence outside
                     abstraction in the file "modresource.class" and I had to change to a
                    "CASE THEN" statement that theoretically should work well in mysql, sqlsrv and
                     sqlite.


              •  I am testing, statement by statement in the Manager Panels, if exist errors.



              • I cleaned the sqlite-2.2 repository, I added il "core.transport.zip" so this
                    ready to test the installation.
                    If someone wants to get off the shareware, to find bugs or inconsistencies

                    I will try to solve them quickly.
                I hope someone also "Team MODx" can try this version.


              • I have tested successfully, the installation of the version in the branch "sqlite-2.2"
                    I have tested on a production server: CentOS 5.8 x86_64 and flies
                    8 seconds the installation is complete! attention on localhost may be
                somewhat more  slow the installation.



              https://github.com/RTOSkit/revolution.git


              Regards
                Developer of RTOS and Drivers
                Specializes in portability of BSD/Linux
                • 436 ☆ A M B ☆
                • 265 Posts
                I had just been reading about SQLite and how flexible it seems, one of the problems I run into is when developing locally there's not a good way to sync a local mySQL database with a remote database.

                If I am correct, SQLite seems like a good solution to this?

                Should the installation of this setup be quite straight forward?
                  MODX Ambassador for Thailand. Managing Director at Monogon, a web design and development studio based in Bangkok, Thailand. - Follow me on Twitter.
                  • 40029
                  • 52 Posts
                  Hi Adam,

                  I do not know exactly what the problem you have with mysql,
                  but usually mysql is always the right choice, especially for a service that needs scalability and a good response on loading Distributed Processes.

                  I personally admire very much the SQLite project, but in my opinion,
                  SQLite is a choice that has more sense in local test services and embedded solutions.

                  The esperimental version of "Modx with SQLite" still being tested only on embedded devices.
                  The installation is simple as the other installations, but some features, such as the installation of packages have to be done manually. And the extras have to be modified to work with SQLite.

                  During this time I have a little overworked, and as soon as possible try to make a friendlier version of the package.

                  In any case, the current version is available on github.

                  Best Regards [ed. note: rtoskit last edited this post 13 years, 11 months ago.]
                    Developer of RTOS and Drivers
                    Specializes in portability of BSD/Linux