Asset server implementation. Again one of these "plumbing" releases, where no real functionality has been introduced, but ground work has been made, enabling the asset server, and preparing the sim server to query the asset server.

Introduced an "IPlugin" interface, which plugins can inherit from.
This commit is contained in:
Tleiades Hax
2007-10-13 07:26:21 +00:00
parent a0b1ab2258
commit 1232eb1c58
13 changed files with 416 additions and 306 deletions

View File

@@ -53,7 +53,7 @@ namespace OpenSim.Framework.Data.SQLite
private const string assetSelect = "select * from assets";
private DataSet ds;
private SqliteDataAdapter da;
public void Initialise(string dbfile, string dbname)
{
SqliteConnection conn = new SqliteConnection("URI=file:" + dbfile + ",version=3");
@@ -275,5 +275,26 @@ namespace OpenSim.Framework.Data.SQLite
return true;
}
#region IPlugin interface
public string Version {
get
{
System.Reflection.Module module = this.GetType().Module;
string dllName = module.Assembly.ManifestModule.Name;
Version dllVersion = module.Assembly.GetName().Version;
return string.Format("{0}.{1}.{2}.{3}", dllVersion.Major, dllVersion.Minor, dllVersion.Build, dllVersion.Revision);
}
}
public void Initialise()
{
Initialise("AssetStorage.db", "");
}
public string Name {
get { return "SQLite Asset storage engine"; }
}
#endregion
}
}