Merge pull request #178 from Menelion/initialize

SQLite: Fix spelling typo
This commit is contained in:
Adam D. Ruppe 2018-12-04 17:05:07 -05:00 committed by GitHub
commit 1308c93443
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions

View File

@ -43,14 +43,14 @@ import std.conv;
scope(exit)) scope(exit))
*/ */
Sqlite openDBAndCreateIfNotPresent(string filename, string sql, void delegate(Sqlite db) initalize = null){ Sqlite openDBAndCreateIfNotPresent(string filename, string sql, void delegate(Sqlite db) initialize = null){
if(exists(filename)) if(exists(filename))
return new Sqlite(filename); return new Sqlite(filename);
else { else {
auto db = new Sqlite(filename); auto db = new Sqlite(filename);
db.exec(sql); db.exec(sql);
if(initalize !is null) if(initialize !is null)
initalize(db); initialize(db);
return db; return db;
} }
} }