29 using System.Collections.Generic;
31 using System.Reflection;
32 using System.Threading;
35 using OpenSim.Framework;
36 using MySql.Data.MySqlClient;
38 namespace OpenSim.Data.MySQL
47 public MySQLHGTravelData(
string connectionString,
string realm) : base(connectionString, realm,
"HGTravelStore") { }
61 return base.Get(
"UserID", userID.ToString());
66 return Delete(
"SessionID", sessionID.ToString());
71 using (MySqlCommand cmd =
new MySqlCommand())
73 cmd.CommandText = String.Format(
"delete from {0} where TMStamp < NOW() - INTERVAL 2 DAY", m_Realm);
bool Delete(UUID sessionID)
HGTravelingData Get(UUID sessionID)
A MySQL Interface for user grid data
MySQLHGTravelData(string connectionString, string realm)
An interface for connecting to the user grid datastore
HGTravelingData[] GetSessions(UUID userID)