Some interesting serverless database. What do you think?
-
It looks like nobody have nothing to say neither heard about it. And I'm trying to understand it.
-
So far I have not needed any database services in my scripts. But please do keep this updated if you get it working
Chris
-
Me neither, haven't dealt with databases since I was making websites.
-
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.
-
What is the problem you are trying to solve?
-
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.
-
-
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.
-
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.
-
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 -
I think CouchDB is an interesting project, too.
Advertisement