29 using System.Collections.Generic;
30 using System.Reflection;
31 using System.Threading;
34 using OpenSim.Framework;
39 namespace OpenSim.Data.PGSQL
50 base(connectionString, realm,
"Avatar")
54 public bool Delete(UUID principalID,
string name)
56 using (NpgsqlConnection conn =
new NpgsqlConnection(m_ConnectionString))
57 using (NpgsqlCommand cmd =
new NpgsqlCommand())
60 cmd.CommandText = String.Format(
"DELETE FROM {0} where \"PrincipalID\" = :PrincipalID and \"Name\" = :Name", m_Realm);
61 cmd.Parameters.Add(m_database.CreateParameter(
"PrincipalID", principalID));
62 cmd.Parameters.Add(m_database.CreateParameter(
"Name", name));
63 cmd.Connection = conn;
65 if (cmd.ExecuteNonQuery() > 0)
PGSQLAvatarData(string connectionString, string realm)
bool Delete(UUID principalID, string name)
A PGSQL Interface for Avatar Storage