![]() |
Development Lifecycle »
Installation »
General
Beginner
License: The Code Project Open License (CPOL)
Configuring Plastic SCM database backendBy parallelcoderConfiguring Plastic SCM database backend |
Windows, SQL Server (SQL 2005), Architect, DBA, Dev
|
||||||||
|
Advanced Search |
|
|
|
||||||||||||||||
Plastic SCM is a new generation version control tool. It seems to be entirely written in .NET/Mono and it provides many interesting features for both Linux and Windows developers (needless to say how good it is for multiplatform environments).
But today I won't be talking about version control issues but how to configure the Plastic database backends.
Plastic stores all the versioned data in a standard database backend, which is quite interesting because nowadays no one wants to have its important business data stored in some sort of ankward specific-purpose storage... I mean, would your customers allow you to store their business application's data into a specially designed file based storage or would they ask you to use MySQL or SQL Server or something else? Ok, think on SVN, CVS, SourceSafe... yes, they might be open but, can you really take a look into the data with standard tools? Can you select the backend more suitable to your specific needs?
You could take a look into the data with something like "ibmanager", but you'd first have to stop the plastic server, otherwise the default firebird embedded server will keep the files locked.
Create a db.conf file in the server's directory (where loader.exe resides, or plasticd.exe if you're running preview 2.0 or higher) with the following contents:
Note the file specifies three things: a provider type (more on this later), a connection string (.NET or Java developers will be quite familiar with it) and a database path. If you leave a param empty, the default one will be used.
The following figure shows how to set up an external Firebird server connection so that the Plastic server will use it instead of the embedded's one. Note the ServerType is now 0 (1 is used to set up the embedded one).
The backend configuration is quite flexible which is very good specially if you're concerned with scalability or performance. What if you want to deploy the plastic server in an internal network which already has a powerful database server? You could run the Plastic server on a computer and the database server on a different one, which will normally boost performance. The following figure depicts the scenario.
And, how would you set it up. Check the following db.conf and note how a server, port and some other firebird parameters can be easily tuned.
One of the least know features of the plastic server is that it is not constrained to a Firebird database, it can use SQL Server too. Plastic can use SQL Server (2005 or higher, this is very important to note because it needs to set some transaction parameter only available on 2005 and higher) which is better for companies already using the Microsoft's db software.
Setting up a SQL Server backend is also done by changing the db.conf file. Take a look at the following figure to learn how to set it up.
It is important to note that switching database backends won't migrate data from one db to the new one, but it will just tell plastic to start working against the new backend. If you want to migrate the old data you should use some standard application to move data between the desired backends or contact plastic's support.
General
News
Question
Answer
Joke
Rant
Admin
|
PermaLink |
Privacy |
Terms of Use
Last Updated: 20 Jan 2008 Editor: |
Copyright 2008 by parallelcoder Everything else Copyright © CodeProject, 1999-2009 Web15 | Advertise on the Code Project |