appendCreateTable method

Future<int> appendCreateTable(
  1. String tableName,
  2. Map<String, dynamic> schemaJson
)

Implementation

Future<int> appendCreateTable(
    String tableName, Map<String, dynamic> schemaJson) async {
  return append((lsn, prev) => WalBinRecord(
    lsn: lsn, txnId: 0, prevLsn: prev,
    op: WalBinOp.createTable, flags: 0x02, tableId: 0, rowId: 0,
    ddlPayload: {'table': tableName, 'schema': schemaJson},
  ));
}