diff options
author | Adam Frisby | 2007-06-02 00:44:23 +0000 |
---|---|---|
committer | Adam Frisby | 2007-06-02 00:44:23 +0000 |
commit | 3d0a820da9672033222e44864724a5e2040ce179 (patch) | |
tree | 5c7f2b35d0771a04b7f86730b449ec431a9c529b /OpenGridServices/OpenGrid.Framework.Data.SQLite/SQLiteManager.cs | |
parent | Dont want to do that again --- MySQL interface is now fully documented. Added... (diff) | |
download | opensim-SC_OLD-3d0a820da9672033222e44864724a5e2040ce179.zip opensim-SC_OLD-3d0a820da9672033222e44864724a5e2040ce179.tar.gz opensim-SC_OLD-3d0a820da9672033222e44864724a5e2040ce179.tar.bz2 opensim-SC_OLD-3d0a820da9672033222e44864724a5e2040ce179.tar.xz |
* Documented SQLite grid interfaces
Diffstat (limited to '')
-rw-r--r-- | OpenGridServices/OpenGrid.Framework.Data.SQLite/SQLiteManager.cs | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/OpenGridServices/OpenGrid.Framework.Data.SQLite/SQLiteManager.cs b/OpenGridServices/OpenGrid.Framework.Data.SQLite/SQLiteManager.cs index 408a582..7da16db 100644 --- a/OpenGridServices/OpenGrid.Framework.Data.SQLite/SQLiteManager.cs +++ b/OpenGridServices/OpenGrid.Framework.Data.SQLite/SQLiteManager.cs | |||
@@ -64,6 +64,11 @@ namespace OpenGrid.Framework.Data.SQLite | |||
64 | return (IDbCommand)dbcommand; | 64 | return (IDbCommand)dbcommand; |
65 | } | 65 | } |
66 | 66 | ||
67 | /// <summary> | ||
68 | /// Reads a region row from a database reader | ||
69 | /// </summary> | ||
70 | /// <param name="reader">An active database reader</param> | ||
71 | /// <returns>A region profile</returns> | ||
67 | public SimProfileData getRow(IDataReader reader) | 72 | public SimProfileData getRow(IDataReader reader) |
68 | { | 73 | { |
69 | SimProfileData retval = new SimProfileData(); | 74 | SimProfileData retval = new SimProfileData(); |
@@ -115,6 +120,11 @@ namespace OpenGrid.Framework.Data.SQLite | |||
115 | return retval; | 120 | return retval; |
116 | } | 121 | } |
117 | 122 | ||
123 | /// <summary> | ||
124 | /// Inserts a new region into the database | ||
125 | /// </summary> | ||
126 | /// <param name="profile">The region to insert</param> | ||
127 | /// <returns>Success?</returns> | ||
118 | public bool insertRow(SimProfileData profile) | 128 | public bool insertRow(SimProfileData profile) |
119 | { | 129 | { |
120 | string sql = "REPLACE INTO regions VALUES (regionHandle, regionName, uuid, regionRecvKey, regionSecret, regionSendKey, regionDataURI, "; | 130 | string sql = "REPLACE INTO regions VALUES (regionHandle, regionName, uuid, regionRecvKey, regionSecret, regionSendKey, regionDataURI, "; |