mirror of
https://github.com/opensim/opensim.git
synced 2026-05-16 11:46:04 +08:00
for now. It doesn't build on new mono at the moment, and isn't currently used. Please make sure this functions on mono 1.2.6 prior to adding it back in for the main tree.
26 lines
642 B
C#
26 lines
642 B
C#
using System.Data.Common;
|
|
using MySql.Data.MySqlClient;
|
|
// using TribalMedia.Framework.Data;
|
|
|
|
namespace OpenSim.Framework.Data.MySQL
|
|
{
|
|
public class MySQLDatabaseMapper : OpenSimDatabaseConnector
|
|
{
|
|
public MySQLDatabaseMapper(string connectionString)
|
|
: base(connectionString)
|
|
{
|
|
}
|
|
|
|
public override DbConnection GetNewConnection()
|
|
{
|
|
MySqlConnection connection = new MySqlConnection(m_connectionString);
|
|
return connection;
|
|
}
|
|
|
|
public override string CreateParamName(string fieldName)
|
|
{
|
|
return "?" + fieldName;
|
|
}
|
|
}
|
|
}
|