-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
33ab105
commit 1d9f27f
Showing
15 changed files
with
169 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
module uim.databases.classes.drivers.driver; | ||
|
||
import uim.databases; | ||
|
||
@safe: | ||
|
||
class DDBDriver { | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
module uim.databases.classes.drivers; | ||
|
||
public { | ||
import uim.databases.classes.drivers.driver; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
module uim.databases.classes.expressions.expression; | ||
|
||
import uim.databases; | ||
|
||
@safe: | ||
|
||
class DDBExpression { | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
module databases.uim.databases.classes.expressions; | ||
|
||
public { | ||
import uim.databases.classes.expressions.expression; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,7 @@ | ||
module uim.databases.classes; | ||
|
||
public { | ||
import uim.databases.classes.drivers; | ||
import uim.databases.classes.expressions; | ||
import uim.databases.classes.statements; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
module uim.databases.classes.queries; | ||
|
||
public { | ||
import uim.databases.classes.queries.query; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
module uim.databases.classes.queries.query; | ||
|
||
import uim.databases; | ||
|
||
@safe: | ||
|
||
class DDBQuery { | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
module databases.uim.databases.classes.drivers copy; | ||
|
||
public { | ||
import uim.databases.classes.drivers.driver; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
module uim.databases.classes.statement.statement; | ||
|
||
import uim.databases; | ||
|
||
@safe: | ||
|
||
class DDBStatement { | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
module uim.databases.exceptions.exceptions; | ||
|
||
import uim.databases; | ||
|
||
@safe: | ||
|
||
// Database exception. | ||
class DDatabaseException : UimException { | ||
mixin(ExceptionThis!("Database")); | ||
|
||
override bool initialize(IData[string] configData = null) { | ||
if (!super.initialize(configData)) { return false; } | ||
|
||
this | ||
.messageTemplate("Error in libary uim-databases"); | ||
|
||
return true; | ||
} | ||
} | ||
mixin(ExceptionCalls!("Database")); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,5 @@ | ||
module uim.databases.exceptions; | ||
|
||
public { | ||
import uim.databases.exceptions.exception: | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
module uim.databases.mixins.driver; | ||
|
||
import uim.databases; | ||
|
||
@safe: | ||
|
||
string driverThis(string name) { | ||
string fullName = name~"Driver"; | ||
return ` | ||
this() { super(); this.name("`~fullName~`"); } | ||
`; | ||
} | ||
|
||
template DriverThis(string name) { | ||
const char[] DriverThis = driverThis(name); | ||
} | ||
|
||
string driverCalls(string name) { | ||
string fullName = name~"Driver"; | ||
return ` | ||
auto `~fullname~`() { return new D`~fullName~`(); } | ||
`; | ||
} | ||
|
||
template DriverCalls(string name) { | ||
const char[] DriverCalls = driverCalls(name); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
module databases.uim.databases.mixins.expression; | ||
|
||
import uim.databases; | ||
|
||
@safe: | ||
|
||
string expressionThis(string name) { | ||
string fullName = name~"Expression"; | ||
return ` | ||
this() { super(); this.name("`~fullName~`"); } | ||
`; | ||
} | ||
|
||
template ExpressionThis(string name) { | ||
const char[] ExpressionThis = expressionThis(name); | ||
} | ||
|
||
string expressionCalls(string name) { | ||
string fullName = name~"Expression"; | ||
return ` | ||
auto `~fullname~`() { return new D`~fullName~`(); } | ||
`; | ||
} | ||
|
||
template ExpressionCalls(string name) { | ||
const char[] ExpressionCalls = expressionCalls(name); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
module databases.uim.databases.mixins.query; | ||
|
||
import uim.databases; | ||
|
||
@safe: | ||
|
||
string queryThis(string name) { | ||
string fullName = name~"Query"; | ||
return ` | ||
this() { super(); this.name("`~fullName~`"); } | ||
`; | ||
} | ||
|
||
template QueryThis(string name) { | ||
const char[] QueryThis = queryThis(name); | ||
} | ||
|
||
string queryCalls(string name) { | ||
string fullName = name~"Query"; | ||
return ` | ||
auto `~fullname~`() { return new D`~fullName~`(); } | ||
`; | ||
} | ||
|
||
template QueryCalls(string name) { | ||
const char[] QueryCalls = queryCalls(name); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
module databases.uim.databases.mixins.statement; | ||
|
||
import uim.databases; | ||
|
||
@safe: | ||
|
||
class DDBDriver { | ||
} |