OpenSim
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Events Macros
Public Member Functions | Protected Member Functions | List of all members
OpenSim.Data.PGSQL.PGSQLMigration Class Reference
Inheritance diagram for OpenSim.Data.PGSQL.PGSQLMigration:
Inheritance graph
[legend]
Collaboration diagram for OpenSim.Data.PGSQL.PGSQLMigration:
Collaboration graph
[legend]

Public Member Functions

 PGSQLMigration (NpgsqlConnection conn, Assembly assem, string type)
 
 PGSQLMigration (NpgsqlConnection conn, Assembly assem, string subtype, string type)
 
- Public Member Functions inherited from OpenSim.Data.Migration
 Migration ()
 Have the parameterless constructor just so we can specify it as a generic parameter with the new() constraint. Currently this is only used in the tests. A Migration instance created this way must be then initialized with Initialize(). Regular creation should be through the parameterized constructors. More...
 
 Migration (DbConnection conn, Assembly assem, string subtype, string type)
 
 Migration (DbConnection conn, Assembly assem, string type)
 
void Initialize (DbConnection conn, Assembly assem, string type, string subtype)
 Must be called after creating with the parameterless constructor. NOTE that the Migration class now doesn't access database in any way during initialization. Specifically, it won't check if the [migrations] table exists. Such checks are done later: automatically on Update(), or you can explicitly call InitMigrationsTable(). More...
 
void InitMigrationsTable ()
 
void Update ()
 

Protected Member Functions

override int FindVersion (DbConnection conn, string type)
 
override void ExecuteScript (DbConnection conn, string[] script)
 Executes a script, possibly in a database-specific way. It can be redefined for a specific DBMS, if necessary. Specifically, to avoid problems with proc definitions in MySQL, we must use MySqlScript class instead of just DbCommand. We don't want to bring MySQL references here, so instead define a MySQLMigration class in OpenSim.Data.MySQL More...
 
- Protected Member Functions inherited from OpenSim.Data.Migration
void ExecuteScript (DbConnection conn, string sql)
 
void ExecuteScript (string sql)
 
void ExecuteScript (string[] script)
 

Additional Inherited Members

- Protected Attributes inherited from OpenSim.Data.Migration
string _type
 
DbConnection _conn
 
Assembly _assem
 
- Properties inherited from OpenSim.Data.Migration
int Version [get, set]
 

Detailed Description

Definition at line 36 of file PGSQLMigration.cs.

Constructor & Destructor Documentation

OpenSim.Data.PGSQL.PGSQLMigration.PGSQLMigration ( NpgsqlConnection  conn,
Assembly  assem,
string  type 
)
inline

Definition at line 38 of file PGSQLMigration.cs.

OpenSim.Data.PGSQL.PGSQLMigration.PGSQLMigration ( NpgsqlConnection  conn,
Assembly  assem,
string  subtype,
string  type 
)
inline

Definition at line 43 of file PGSQLMigration.cs.

Member Function Documentation

override void OpenSim.Data.PGSQL.PGSQLMigration.ExecuteScript ( DbConnection  conn,
string[]  script 
)
inlineprotectedvirtual

Executes a script, possibly in a database-specific way. It can be redefined for a specific DBMS, if necessary. Specifically, to avoid problems with proc definitions in MySQL, we must use MySqlScript class instead of just DbCommand. We don't want to bring MySQL references here, so instead define a MySQLMigration class in OpenSim.Data.MySQL

Parameters
conn
scriptArray of strings, one-per-batch (often just one)

Reimplemented from OpenSim.Data.Migration.

Definition at line 77 of file PGSQLMigration.cs.

override int OpenSim.Data.PGSQL.PGSQLMigration.FindVersion ( DbConnection  conn,
string  type 
)
inlineprotectedvirtual

Reimplemented from OpenSim.Data.Migration.

Definition at line 48 of file PGSQLMigration.cs.


The documentation for this class was generated from the following file: