DeveelDB  20151217
complete SQL database system, primarly developed for .NET/Mono frameworks
Public Member Functions | Protected Member Functions | Static Private Attributes | List of all members
Deveel.Data.Sql.Triggers.TriggerTests Class Reference
Inheritance diagram for Deveel.Data.Sql.Triggers.TriggerTests:
Deveel.Data.ContextBasedTest

Public Member Functions

void CreateCallbackTrigger ()
 
void CreateProcedureTrigger ()
 
- Public Member Functions inherited from Deveel.Data.ContextBasedTest
void TestSetUp ()
 
void TestFixtureSetUp ()
 
void TestTearDown ()
 
void TestFixtureTearDown ()
 

Protected Member Functions

override IQuery CreateQuery (ISession session)
 
- Protected Member Functions inherited from Deveel.Data.ContextBasedTest
virtual void RegisterServices (ServiceContainer container)
 
virtual ISystem CreateSystem ()
 
virtual IDatabase CreateDatabase (ISystem system, IConfiguration configuration)
 
virtual ISession CreateAdminSession (IDatabase database)
 
ISession CreateUserSession (string userName, string password)
 
virtual void OnSetUp (string testName)
 
virtual void OnTearDown ()
 

Static Private Attributes

static readonly ObjectName TestTableName = ObjectName.Parse("APP.test_table")
 

Additional Inherited Members

- Protected Attributes inherited from Deveel.Data.ContextBasedTest
const string AdminUserName = "SA"
 
const string AdminPassword = "1234567890"
 
const string DatabaseName = "testdb"
 
- Properties inherited from Deveel.Data.ContextBasedTest
virtual bool SingleContext [get]
 
IQuery Query [get, private set]
 
ISystem System [get, private set]
 
IDatabase Database [get, private set]
 
ISession Session [get, private set]
 

Detailed Description

Definition at line 24 of file TriggerTests.cs.

Member Function Documentation

void Deveel.Data.Sql.Triggers.TriggerTests.CreateCallbackTrigger ( )
inline

Definition at line 38 of file TriggerTests.cs.

38  {
39  var triggerName = ObjectName.Parse("APP.test_trigger");
40  Assert.DoesNotThrow(() => Query.CreateCallbackTrigger(triggerName, TriggerEventType.BeforeInsert));
41 
42  bool exists = false;
43  Assert.DoesNotThrow(() => exists = Query.TriggerExists(triggerName));
44  Assert.IsTrue(exists);
45  }
TriggerEventType
The different types of high layer trigger events.
void Deveel.Data.Sql.Triggers.TriggerTests.CreateProcedureTrigger ( )
inline

Definition at line 48 of file TriggerTests.cs.

48  {
49 
50  }
override IQuery Deveel.Data.Sql.Triggers.TriggerTests.CreateQuery ( ISession  session)
inlineprotectedvirtual

Reimplemented from Deveel.Data.ContextBasedTest.

Definition at line 27 of file TriggerTests.cs.

27  {
28  var query = base.CreateQuery(session);
29  var tableInfo = new TableInfo(TestTableName);
30  tableInfo.AddColumn("id", PrimitiveTypes.Integer());
31  tableInfo.AddColumn("name", PrimitiveTypes.String());
32  tableInfo.AddColumn("date", PrimitiveTypes.DateTime());
33  query.CreateTable(tableInfo);
34  return query;
35  }
Provides some helper functions for resolving and creating SqlType instances that are primitive to the...
static readonly ObjectName TestTableName
Definition: TriggerTests.cs:25
Defines the metadata properties of a table existing within a database.
Definition: TableInfo.cs:41

Member Data Documentation

readonly ObjectName Deveel.Data.Sql.Triggers.TriggerTests.TestTableName = ObjectName.Parse("APP.test_table")
staticprivate

Definition at line 25 of file TriggerTests.cs.


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