diff options
Diffstat (limited to 'OpenGridServices/OpenGrid.Framework.Data.SQLite/SQLiteManager.cs')
-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, "; |