diff options
author | Tleiades Hax | 2007-10-13 07:26:21 +0000 |
---|---|---|
committer | Tleiades Hax | 2007-10-13 07:26:21 +0000 |
commit | 1232eb1c587ffdc06c26a1c5b1b4fa5f22848754 (patch) | |
tree | 468fb8483a2cd03e472a6988ef60f1c8ff01c07e /OpenSim/Framework/Data.SQLite/SQLiteAssetData.cs | |
parent | Change 3 UserServer login messages from writeline to MainLog to help diagnose... (diff) | |
download | opensim-SC_OLD-1232eb1c587ffdc06c26a1c5b1b4fa5f22848754.zip opensim-SC_OLD-1232eb1c587ffdc06c26a1c5b1b4fa5f22848754.tar.gz opensim-SC_OLD-1232eb1c587ffdc06c26a1c5b1b4fa5f22848754.tar.bz2 opensim-SC_OLD-1232eb1c587ffdc06c26a1c5b1b4fa5f22848754.tar.xz |
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.
Diffstat (limited to 'OpenSim/Framework/Data.SQLite/SQLiteAssetData.cs')
-rw-r--r-- | OpenSim/Framework/Data.SQLite/SQLiteAssetData.cs | 23 |
1 files changed, 22 insertions, 1 deletions
diff --git a/OpenSim/Framework/Data.SQLite/SQLiteAssetData.cs b/OpenSim/Framework/Data.SQLite/SQLiteAssetData.cs index 4616275..922d714 100644 --- a/OpenSim/Framework/Data.SQLite/SQLiteAssetData.cs +++ b/OpenSim/Framework/Data.SQLite/SQLiteAssetData.cs | |||
@@ -53,7 +53,7 @@ namespace OpenSim.Framework.Data.SQLite | |||
53 | private const string assetSelect = "select * from assets"; | 53 | private const string assetSelect = "select * from assets"; |
54 | private DataSet ds; | 54 | private DataSet ds; |
55 | private SqliteDataAdapter da; | 55 | private SqliteDataAdapter da; |
56 | 56 | ||
57 | public void Initialise(string dbfile, string dbname) | 57 | public void Initialise(string dbfile, string dbname) |
58 | { | 58 | { |
59 | SqliteConnection conn = new SqliteConnection("URI=file:" + dbfile + ",version=3"); | 59 | SqliteConnection conn = new SqliteConnection("URI=file:" + dbfile + ",version=3"); |
@@ -275,5 +275,26 @@ namespace OpenSim.Framework.Data.SQLite | |||
275 | return true; | 275 | return true; |
276 | } | 276 | } |
277 | 277 | ||
278 | #region IPlugin interface | ||
279 | public string Version { | ||
280 | get | ||
281 | { | ||
282 | System.Reflection.Module module = this.GetType().Module; | ||
283 | string dllName = module.Assembly.ManifestModule.Name; | ||
284 | Version dllVersion = module.Assembly.GetName().Version; | ||
285 | |||
286 | return string.Format("{0}.{1}.{2}.{3}", dllVersion.Major, dllVersion.Minor, dllVersion.Build, dllVersion.Revision); | ||
287 | } | ||
288 | } | ||
289 | |||
290 | public void Initialise() | ||
291 | { | ||
292 | Initialise("AssetStorage.db", ""); | ||
293 | } | ||
294 | |||
295 | public string Name { | ||
296 | get { return "SQLite Asset storage engine"; } | ||
297 | } | ||
298 | #endregion | ||
278 | } | 299 | } |
279 | } | 300 | } |