Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Comparing changes

Choose two branches to see what's changed or to start a new pull request. If you need to, you can also compare across forks.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also compare across forks.
  • 2 commits
  • 3 files changed
  • 0 commit comments
  • 1 contributor
Commits on Mar 01, 2012
@mrmonday More code cleanups.
Removed some unused imports and dead code.
c8625e3
@mrmonday Fix typo. 65c35bd
View
2  serenity/persister/Persister.d
@@ -82,7 +82,7 @@ template isPersisterBackend(T...)
/// Tuple of all enabled backends
mixin(q{private alias TypeTuple!(} ~ getBackends() ~ q{) PersisterBackends;});
static assert(isPersisterBackend!(PersisterBackends), "One or more of the enabled persistance backends "
- "does not meet the required functionality of a persiser.");
+ "does not meet the required functionality of a persister.");
/// The default backend
// TODO This should be configurable with the build script
View
1  serenity/persister/Query.d
@@ -9,7 +9,6 @@
*/
module serenity.persister.Query;
-import std.array;
import std.typetuple;
enum QueryType
View
22 serenity/persister/backend/Sqlite.d
@@ -21,11 +21,9 @@ import std.traits;
import std.typecons;
import std.typetuple;
-import serenity.persister.Query;
-
import serenity.core.Config;
-import serenity.core.Serenity;
-import serenity.core.Util;
+
+import serenity.persister.Query;
// Naive implementation that works at compile time, std.array.replace fails
string replace(string str, string[] replacements...)
@@ -347,17 +345,10 @@ class Sqlite
return SqliteQuery(queryStr, columns);
}
- /*T[] execute(T)(string query)
- {
- import std.stdio;
- writefln("query: %s", query);
- assert(0);
- }*/
-
T[] execute(T, Params...)(SqliteQuery query, Params params)
{
- import std.stdio;
- writeln("query: ", query, "; params: ", params);
+ debug import std.stdio;
+ debug writeln("query: ", query, "; params: ", params);
T[] result;
sqlite3_stmt* statement;
// TODO Deal with tail
@@ -487,11 +478,6 @@ class Sqlite
return result;
}
- /*this(string dbName)
- {
- check(sqlite3_open(toStringz(dbName), &mDb));
- }*/
-
private void check(string file=__FILE__, size_t line=__LINE__)(int errCode)
{
if (errCode != SQLITE_OK)

No commit comments for this range

Something went wrong with that request. Please try again.