Definition at line 9 of file PerformanceTest.cs.
void Deveel.Data.PerformanceTest.Insert1000RowsAndCount_Commit |
( |
| ) |
|
|
inline |
Definition at line 65 of file PerformanceTest.cs.
73 for (
int i = 0; i < 1000; i++) {
74 command.
CommandText =
"INSERT INTO TestTable (inc, var_name) VALUES (?, ?)";
81 Console.Out.WriteLine(
"Inserted 1000 rows in {0}.", (end - start));
89 Console.Out.WriteLine(
"Committed in {0}.", (end - start));
91 command = Connection.CreateCommand(
"SELECT COUNT(*) FROM TestTable");
94 Console.Out.WriteLine(
"Numer of rows inserted into TestTable : {0}", count);
new DeveelDbParameterCollection Parameters
override string CommandText
override object ExecuteScalar()
override int ExecuteNonQuery()
override int Add(object value)
void Deveel.Data.PerformanceTest.Insert1000RowsAndCount_NonCommit |
( |
| ) |
|
|
inline |
Definition at line 26 of file PerformanceTest.cs.
34 for (
int i = 0; i < 1000; i++) {
35 command = Connection.CreateCommand();
36 command.
CommandText =
"INSERT INTO TestTable (inc, var_name) VALUES (?, ?)";
43 Console.Out.WriteLine(
"Inserted 1000 rows in {0}.", (end - start));
45 command = Connection.CreateCommand(
"SELECT COUNT(*) FROM TestTable");
48 Assert.AreEqual(1000, count.ToInt32(),
"Not all the rows were inserted");
56 Console.Out.WriteLine(
"Rolled-back in {0}", (end - start));
58 command = Connection.CreateCommand(
"SELECT COUNT(*) FROM TestTable");
61 Assert.AreEqual(0, count,
"After rollback there shouldn't be any rows in the table.");
new DeveelDbParameterCollection Parameters
override string CommandText
override object ExecuteScalar()
override int ExecuteNonQuery()
override int Add(object value)
override void Deveel.Data.PerformanceTest.OnSetUp |
( |
| ) |
|
|
inlineprotected |
Definition at line 10 of file PerformanceTest.cs.
12 command.
CommandText =
"CREATE TABLE IF NOT EXISTS TestTable (" +
15 " var_name VARCHAR(200)" +
override string CommandText
override int ExecuteNonQuery()
override void Deveel.Data.PerformanceTest.OnTearDown |
( |
| ) |
|
|
inlineprotected |
The documentation for this class was generated from the following file:
- /var/calculate/remote/distfiles/egit-src/deveeldb.git/src/deveeldb-nunit/Deveel.Data/PerformanceTest.cs