Haxe sys.db.Manager - SQLite - “无效字段:__ cache__”

时间:2014-08-15 22:01:49

标签: sqlite haxe

尝试将SQLite与Haxe一起使用。任何SPOD管理器函数都会抛出错误:

Invalid field:__cache__

使用Haxe 3.1.3,在Mac OS X上编译cpp目标。

class Main {

    var cnx:Connection;

    public function new()  {

        cnx = sys.db.Sqlite.open(Assets.getPath("db/main.db"));
        sys.db.Manager.cnx = cnx;
        sys.db.Manager.initialize();

        var u = Players.manager.get(1);
        trace(u);

        sys.db.Manager.cleanup();
        cnx.close();
    }
}

class Players extends sys.db.Object{
    public static var manager = new sys.db.Manager<Players>(Players);

    public var id : SId;
    public var username : SString<32>;
    public var x : SInt;
    public var y : SInt;
}

0 个答案:

没有答案