mirror of
https://github.com/opensim/opensim.git
synced 2026-08-06 09:16:28 +08:00
* Documented SQLite grid interfaces
This commit is contained in:
@@ -64,6 +64,11 @@ namespace OpenGrid.Framework.Data.SQLite
|
||||
return (IDbCommand)dbcommand;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Reads a region row from a database reader
|
||||
/// </summary>
|
||||
/// <param name="reader">An active database reader</param>
|
||||
/// <returns>A region profile</returns>
|
||||
public SimProfileData getRow(IDataReader reader)
|
||||
{
|
||||
SimProfileData retval = new SimProfileData();
|
||||
@@ -115,6 +120,11 @@ namespace OpenGrid.Framework.Data.SQLite
|
||||
return retval;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Inserts a new region into the database
|
||||
/// </summary>
|
||||
/// <param name="profile">The region to insert</param>
|
||||
/// <returns>Success?</returns>
|
||||
public bool insertRow(SimProfileData profile)
|
||||
{
|
||||
string sql = "REPLACE INTO regions VALUES (regionHandle, regionName, uuid, regionRecvKey, regionSecret, regionSendKey, regionDataURI, ";
|
||||
|
||||
Reference in New Issue
Block a user