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