changes to allow asset_source to be specified in the opensim.ini

this will work for sqlite and nhibernate, but will be ignored for
mysql and mssql (reverting to their ini files) until someone writes
that bit.
This commit is contained in:
Sean Dague
2008-04-23 19:13:06 +00:00
parent d194f21a5d
commit a1cc0e436f
9 changed files with 40 additions and 13 deletions

View File

@@ -56,9 +56,12 @@ namespace OpenSim.Data.SQLite
private SqliteConnection m_conn;
public void Initialise(string dbfile, string dbname)
override public void Initialise(string dbconnect)
{
m_conn = new SqliteConnection("URI=file:" + dbfile + ",version=3");
if (dbconnect == string.Empty) {
dbconnect = "URI=file:AssetStorage.db,version=3";
}
m_conn = new SqliteConnection(dbconnect);
m_conn.Open();
TestTables(m_conn);
return;
@@ -289,7 +292,7 @@ namespace OpenSim.Data.SQLite
override public void Initialise()
{
Initialise("AssetStorage.db", "");
Initialise("URI=file:AssetStorage.db,version=3");
}
override public string Name