EntityBuilder

public class EntityBuilder<T>

Class used together with ModelBuilder by the code generator to specify the fields and their indexes in an entity. Typical usage is:

let eBuilder = mBuilder.entityBuilder(for: MyEntity.self, id: 1, uid: 1001)
eBuilder.addProperty(name: "id", type: .long, flags: [.id, .unsigned], id: 1, uid: 1001)
eBuilder.addProperty(name: "userName", type: .string, id: 2, uid: 1002)
eBuilder.lastProperty(id: 2, uid: 1002)

and so on. Note that there may be only one EntityBuilder in existence at any one time. It is currently not supported to use a previous EntityBuilder after creating a new one using ModelBuilder‘s entityBuilder() method. See ModelBuilder for more.

You usually don’t have to deal with this class.