Why hibernated does not create tables automatically?

zhmt via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Thu Feb 12 19:24:10 PST 2015


how to update table schema automatically:

this()
	{
		mdb = new MysqlDB(connStr);

		auto conn = mdb.lockConnection();
		scope(exit) conn.close();
		MysqlOrmUtil.updateTableSchema!(Customer)(conn);
		MysqlOrmUtil.updateTableSchema!(Card)(conn);
		MysqlOrmUtil.updateTableSchema!(Agent)(conn);
	}


More information about the Digitalmars-d-learn mailing list