sketchucation logo sketchucation
    • Login
    ℹ️ Licensed Extensions | FredoBatch, ElevationProfile, FredoSketch, LayOps, MatSim and Pic2Shape will require license from Sept 1st More Info

    Some interesting serverless database. What do you think?

    Scheduled Pinned Locked Moved Developers' Forum
    11 Posts 4 Posters 1.2k Views 4 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • N Offline
      NewOne
      last edited by

      It looks like nobody have nothing to say neither heard about it. And I'm trying to understand it. πŸ’š

      1 Reply Last reply Reply Quote 0
      • Chris FullmerC Offline
        Chris Fullmer
        last edited by

        So far I have not needed any database services in my scripts. But please do keep this updated if you get it working πŸ˜„

        Chris

        Lately you've been tan, suspicious for the winter.
        All my Plugins I've written

        1 Reply Last reply Reply Quote 0
        • thomthomT Offline
          thomthom
          last edited by

          Me neither, haven't dealt with databases since I was making websites.

          Thomas Thomassen β€” SketchUp Monkey & Coding addict
          List of my plugins and link to the CookieWare fund

          1 Reply Last reply Reply Quote 0
          • N Offline
            NewOne
            last edited by

            This one is slightly different from commonly used databases. It doesn't deals with tables, but with CLASSES. And as my knowledge about databases is at its beginnings, I have difficulties to understand how it works.

            1 Reply Last reply Reply Quote 0
            • J Offline
              Jim
              last edited by

              What is the problem you are trying to solve?

              Hi

              1 Reply Last reply Reply Quote 0
              • J Offline
                Jim
                last edited by

                Well, if I take a guess at what you need , I think I can give a generalized solution in common use, and uses only open-source software.

                • select a computer to use as the server. It can be any computer on the network, or even your everyday computer you use for SketchUp.

                • Install the Apache web server, MySQL database, and PHP. If you are working on windows, there is a nice package called wamp. If you have a Linux machine to use as a server, the software is is almost certainly installed by default.

                • Create a test database with a table using Mysql command line, or PhpMyAdmin to make it easier. Set the database user and password. This will be used by the PHP script.

                • There will be a php script in the server /www folder that takes the POST data and send it to the database. PHP has a decent mysql library built-in. Use the username, password, and database name from the previous step to connect.

                • Use a WebDialog from SketchUp to send the post data to the PHP script.

                Obviously there are many details I left out, but maybe this gives you some idea what is involved without needing to install Ruby libraries for SketchUp.

                Hi

                1 Reply Last reply Reply Quote 0
                • thomthomT Offline
                  thomthom
                  last edited by

                  Surely there are MySQL solutions already available for Ruby so you don't need to add the extra layer of PHP and webdialogs... ❓ That just sounds like begging for headache.

                  Thomas Thomassen β€” SketchUp Monkey & Coding addict
                  List of my plugins and link to the CookieWare fund

                  1 Reply Last reply Reply Quote 0
                  • J Offline
                    Jim
                    last edited by

                    Of course there are, but I thought one of the problems was getting anything to work with SketchUp/Ruby.

                    The solution I gave should work on all platforms, and without adding anything to SketchUp.

                    Hi

                    1 Reply Last reply Reply Quote 0
                    • N Offline
                      NewOne
                      last edited by

                      I made MySQL working with SketchUp Ruby and was really easy to do it. But I didn't liked it because of the server. MySQL is too powerfull for some stand-alone small application. I tried same thing SQLite3, but I was unable to make it work under SketchUp Ruby.
                      In the end I found what I shown you. The concept is a little different from common databases, but is ruby πŸ˜„

                      1 Reply Last reply Reply Quote 0
                      • J Offline
                        Jim
                        last edited by

                        I think CouchDB is an interesting project, too.

                        Hi

                        1 Reply Last reply Reply Quote 0
                        • 1 / 1
                        • First post
                          Last post
                        Buy SketchPlus
                        Buy SUbD
                        Buy WrapR
                        Buy eBook
                        Buy Modelur
                        Buy Vertex Tools
                        Buy SketchCuisine
                        Buy FormFonts

                        Advertisement