diff options
Diffstat (limited to 'OpenSim/Region/Storage/OpenSim.DataStore.Sqlite/SqliteDataStore.cs')
-rw-r--r-- | OpenSim/Region/Storage/OpenSim.DataStore.Sqlite/SqliteDataStore.cs | 26 |
1 files changed, 5 insertions, 21 deletions
diff --git a/OpenSim/Region/Storage/OpenSim.DataStore.Sqlite/SqliteDataStore.cs b/OpenSim/Region/Storage/OpenSim.DataStore.Sqlite/SqliteDataStore.cs index 5e571d2..14b239f 100644 --- a/OpenSim/Region/Storage/OpenSim.DataStore.Sqlite/SqliteDataStore.cs +++ b/OpenSim/Region/Storage/OpenSim.DataStore.Sqlite/SqliteDataStore.cs | |||
@@ -12,33 +12,17 @@ using libsecondlife; | |||
12 | using System.Data; | 12 | using System.Data; |
13 | // Yes, this won't compile on MS, need to deal with that later | 13 | // Yes, this won't compile on MS, need to deal with that later |
14 | using Mono.Data.SqliteClient; | 14 | using Mono.Data.SqliteClient; |
15 | using Primitive = OpenSim.Region.Environment.Scenes.Primitive; | ||
15 | 16 | ||
16 | namespace OpenSim.DataStore.SqliteStorage | 17 | namespace OpenSim.DataStore.SqliteStorage |
17 | { | 18 | { |
18 | |||
19 | // public class SceneObjectQuery : Predicate | ||
20 | // { | ||
21 | // private LLUUID globalIDSearch; | ||
22 | |||
23 | // public SceneObjectQuery(LLUUID find) | ||
24 | // { | ||
25 | // globalIDSearch = find; | ||
26 | // } | ||
27 | |||
28 | // public bool Match(SceneObject obj) | ||
29 | // { | ||
30 | // return obj.rootUUID == globalIDSearch; | ||
31 | // } | ||
32 | // } | ||
33 | |||
34 | 19 | ||
35 | public class SqliteDataStore : IRegionDataStore | 20 | public class SqliteDataStore : IRegionDataStore |
36 | { | 21 | { |
37 | private const primSelect = "select * from prims"; | 22 | private const string primSelect = "select * from prims"; |
38 | private const shapeSelect = "select * from primshapes"; | 23 | private const string shapeSelect = "select * from primshapes"; |
39 | 24 | ||
40 | private DataSet ds; | 25 | private DataSet ds; |
41 | private IObjectContainer db; | ||
42 | 26 | ||
43 | public void Initialise(string dbfile, string dbname) | 27 | public void Initialise(string dbfile, string dbname) |
44 | { | 28 | { |
@@ -70,7 +54,7 @@ namespace OpenSim.DataStore.SqliteStorage | |||
70 | 54 | ||
71 | } | 55 | } |
72 | 56 | ||
73 | public void StoreObject(AllNewGroupSceneObject obj) | 57 | public void StoreObject(AllNewSceneObjectPart2 obj) |
74 | { | 58 | { |
75 | // TODO: Serializing code | 59 | // TODO: Serializing code |
76 | DataTable prims = ds.Tables["prims"]; | 60 | DataTable prims = ds.Tables["prims"]; |
@@ -89,7 +73,7 @@ namespace OpenSim.DataStore.SqliteStorage | |||
89 | 73 | ||
90 | public void StoreObject(SceneObject obj) | 74 | public void StoreObject(SceneObject obj) |
91 | { | 75 | { |
92 | foreach (Primitive prim in obj.ChildPrimitives.Values) | 76 | foreach (Primitive prim in obj.Children.Values) |
93 | { | 77 | { |
94 | addPrim(prim); | 78 | addPrim(prim); |
95 | } | 79 | } |