mirror of https://github.com/adamdruppe/arsd.git
little things
This commit is contained in:
parent
fa500f2774
commit
671aacf86d
14
database.d
14
database.d
|
@ -1413,6 +1413,20 @@ auto saveToDatabase(T)(T t, Database database, string tableName = toDbName(__tra
|
|||
return t.id;
|
||||
}
|
||||
|
||||
/+ +
|
||||
auto builder = UpdateBuilder("rooms");
|
||||
builder.player_one_selection = challenge;
|
||||
builder.execute(db, id);
|
||||
+/
|
||||
private struct UpdateBuilder {
|
||||
this(T)(string table, T id) {
|
||||
this.table = table;
|
||||
import std.conv;
|
||||
this.id = to!string(id);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
import std.traits, std.datetime;
|
||||
enum DbSave;
|
||||
enum DbNullable;
|
||||
|
|
2
http2.d
2
http2.d
|
@ -4052,7 +4052,7 @@ template addToSimpledisplayEventLoop() {
|
|||
while(ws.processOnce().populated) {}
|
||||
}
|
||||
|
||||
version(linux) {
|
||||
version(Posix) {
|
||||
auto reader = new PosixFdReader(&midprocess, ws.socket.handle);
|
||||
} else version(none) {
|
||||
if(WSAAsyncSelect(ws.socket.handle, window.hwnd, WM_USER + 150, FD_CLOSE | FD_READ))
|
||||
|
|
|
@ -1,8 +1,7 @@
|
|||
/++
|
||||
Creates a UNIX terminal emulator, nested in a minigui widget.
|
||||
|
||||
Depends on my terminalemulator.d core. Get it here:
|
||||
https://github.com/adamdruppe/terminal-emulator/blob/master/terminalemulator.d
|
||||
Depends on my terminalemulator.d core in the arsd repo.
|
||||
+/
|
||||
module arsd.minigui_addons.terminal_emulator_widget;
|
||||
///
|
||||
|
|
|
@ -38,8 +38,6 @@ enum OPL_WRITEBUF_DELAY = 2;
|
|||
|
||||
|
||||
// ////////////////////////////////////////////////////////////////////////// //
|
||||
version(genmidi_dumper) import iv.strex;
|
||||
|
||||
|
||||
// ////////////////////////////////////////////////////////////////////////// //
|
||||
private:
|
||||
|
|
2
sqlite.d
2
sqlite.d
|
@ -46,7 +46,7 @@ import std.conv;
|
|||
scope(exit))
|
||||
*/
|
||||
|
||||
Sqlite openDBAndCreateIfNotPresent(string filename, string sql, void delegate(Sqlite db) initialize = null){
|
||||
Sqlite openDBAndCreateIfNotPresent(string filename, string sql, scope void delegate(Sqlite db) initialize = null){
|
||||
if(exists(filename))
|
||||
return new Sqlite(filename);
|
||||
else {
|
||||
|
|
Loading…
Reference in New Issue