@sqlanvil/cli 1.18.0 → 1.19.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/bundle.js CHANGED
@@ -5888,6 +5888,7 @@ const sqlanvil = $root.sqlanvil = (() => {
5888
5888
  * @property {sqlanvil.ActionConfig.IMetadata|null} [metadata] ViewConfig metadata
5889
5889
  * @property {string|null} [reservation] ViewConfig reservation
5890
5890
  * @property {sqlanvil.IPostgresOptions|null} [postgres] ViewConfig postgres
5891
+ * @property {sqlanvil.IMysqlOptions|null} [mysql] ViewConfig mysql
5891
5892
  */
5892
5893
 
5893
5894
  /**
@@ -6089,6 +6090,14 @@ const sqlanvil = $root.sqlanvil = (() => {
6089
6090
  */
6090
6091
  ViewConfig.prototype.postgres = null;
6091
6092
 
6093
+ /**
6094
+ * ViewConfig mysql.
6095
+ * @member {sqlanvil.IMysqlOptions|null|undefined} mysql
6096
+ * @memberof sqlanvil.ActionConfig.ViewConfig
6097
+ * @instance
6098
+ */
6099
+ ViewConfig.prototype.mysql = null;
6100
+
6092
6101
  /**
6093
6102
  * Creates a new ViewConfig instance using the specified properties.
6094
6103
  * @function create
@@ -6169,6 +6178,8 @@ const sqlanvil = $root.sqlanvil = (() => {
6169
6178
  writer.uint32(/* id 21, wireType 2 =*/170).string(message.reservation);
6170
6179
  if (message.postgres != null && Object.hasOwnProperty.call(message, "postgres"))
6171
6180
  $root.sqlanvil.PostgresOptions.encode(message.postgres, writer.uint32(/* id 22, wireType 2 =*/178).fork(), q + 1).ldelim();
6181
+ if (message.mysql != null && Object.hasOwnProperty.call(message, "mysql"))
6182
+ $root.sqlanvil.MysqlOptions.encode(message.mysql, writer.uint32(/* id 23, wireType 2 =*/186).fork(), q + 1).ldelim();
6172
6183
  return writer;
6173
6184
  };
6174
6185
 
@@ -6351,6 +6362,10 @@ const sqlanvil = $root.sqlanvil = (() => {
6351
6362
  message.postgres = $root.sqlanvil.PostgresOptions.decode(reader, reader.uint32(), undefined, long + 1);
6352
6363
  break;
6353
6364
  }
6365
+ case 23: {
6366
+ message.mysql = $root.sqlanvil.MysqlOptions.decode(reader, reader.uint32(), undefined, long + 1);
6367
+ break;
6368
+ }
6354
6369
  default:
6355
6370
  reader.skipType(tag & 7, long);
6356
6371
  break;
@@ -6500,6 +6515,11 @@ const sqlanvil = $root.sqlanvil = (() => {
6500
6515
  if (error)
6501
6516
  return "postgres." + error;
6502
6517
  }
6518
+ if (message.mysql != null && Object.hasOwnProperty.call(message, "mysql")) {
6519
+ let error = $root.sqlanvil.MysqlOptions.verify(message.mysql, long + 1);
6520
+ if (error)
6521
+ return "mysql." + error;
6522
+ }
6503
6523
  return null;
6504
6524
  };
6505
6525
 
@@ -6626,6 +6646,11 @@ const sqlanvil = $root.sqlanvil = (() => {
6626
6646
  throw TypeError(".sqlanvil.ActionConfig.ViewConfig.postgres: object expected");
6627
6647
  message.postgres = $root.sqlanvil.PostgresOptions.fromObject(object.postgres, long + 1);
6628
6648
  }
6649
+ if (object.mysql != null) {
6650
+ if (!$util.isObject(object.mysql))
6651
+ throw TypeError(".sqlanvil.ActionConfig.ViewConfig.mysql: object expected");
6652
+ message.mysql = $root.sqlanvil.MysqlOptions.fromObject(object.mysql, long + 1);
6653
+ }
6629
6654
  return message;
6630
6655
  };
6631
6656
 
@@ -6673,6 +6698,7 @@ const sqlanvil = $root.sqlanvil = (() => {
6673
6698
  object.metadata = null;
6674
6699
  object.reservation = "";
6675
6700
  object.postgres = null;
6701
+ object.mysql = null;
6676
6702
  }
6677
6703
  if (message.name != null && Object.hasOwnProperty.call(message, "name"))
6678
6704
  object.name = message.name;
@@ -6749,6 +6775,8 @@ const sqlanvil = $root.sqlanvil = (() => {
6749
6775
  object.reservation = message.reservation;
6750
6776
  if (message.postgres != null && Object.hasOwnProperty.call(message, "postgres"))
6751
6777
  object.postgres = $root.sqlanvil.PostgresOptions.toObject(message.postgres, options, q + 1);
6778
+ if (message.mysql != null && Object.hasOwnProperty.call(message, "mysql"))
6779
+ object.mysql = $root.sqlanvil.MysqlOptions.toObject(message.mysql, options, q + 1);
6752
6780
  return object;
6753
6781
  };
6754
6782
 
@@ -16490,6 +16518,7 @@ const sqlanvil = $root.sqlanvil = (() => {
16490
16518
  * @property {string|null} [engine] MysqlOptions engine
16491
16519
  * @property {string|null} [charset] MysqlOptions charset
16492
16520
  * @property {string|null} [collation] MysqlOptions collation
16521
+ * @property {string|null} [rowFormat] MysqlOptions rowFormat
16493
16522
  * @property {Array.<sqlanvil.MysqlOptions.IIndex>|null} [indexes] MysqlOptions indexes
16494
16523
  * @property {sqlanvil.MysqlOptions.IPartition|null} [partition] MysqlOptions partition
16495
16524
  */
@@ -16534,6 +16563,14 @@ const sqlanvil = $root.sqlanvil = (() => {
16534
16563
  */
16535
16564
  MysqlOptions.prototype.collation = "";
16536
16565
 
16566
+ /**
16567
+ * MysqlOptions rowFormat.
16568
+ * @member {string} rowFormat
16569
+ * @memberof sqlanvil.MysqlOptions
16570
+ * @instance
16571
+ */
16572
+ MysqlOptions.prototype.rowFormat = "";
16573
+
16537
16574
  /**
16538
16575
  * MysqlOptions indexes.
16539
16576
  * @member {Array.<sqlanvil.MysqlOptions.IIndex>} indexes
@@ -16589,6 +16626,8 @@ const sqlanvil = $root.sqlanvil = (() => {
16589
16626
  $root.sqlanvil.MysqlOptions.Index.encode(message.indexes[i], writer.uint32(/* id 4, wireType 2 =*/34).fork(), q + 1).ldelim();
16590
16627
  if (message.partition != null && Object.hasOwnProperty.call(message, "partition"))
16591
16628
  $root.sqlanvil.MysqlOptions.Partition.encode(message.partition, writer.uint32(/* id 5, wireType 2 =*/42).fork(), q + 1).ldelim();
16629
+ if (message.rowFormat != null && Object.hasOwnProperty.call(message, "rowFormat"))
16630
+ writer.uint32(/* id 6, wireType 2 =*/50).string(message.rowFormat);
16592
16631
  return writer;
16593
16632
  };
16594
16633
 
@@ -16641,6 +16680,10 @@ const sqlanvil = $root.sqlanvil = (() => {
16641
16680
  message.collation = reader.string();
16642
16681
  break;
16643
16682
  }
16683
+ case 6: {
16684
+ message.rowFormat = reader.string();
16685
+ break;
16686
+ }
16644
16687
  case 4: {
16645
16688
  if (!(message.indexes && message.indexes.length))
16646
16689
  message.indexes = [];
@@ -16699,6 +16742,9 @@ const sqlanvil = $root.sqlanvil = (() => {
16699
16742
  if (message.collation != null && Object.hasOwnProperty.call(message, "collation"))
16700
16743
  if (!$util.isString(message.collation))
16701
16744
  return "collation: string expected";
16745
+ if (message.rowFormat != null && Object.hasOwnProperty.call(message, "rowFormat"))
16746
+ if (!$util.isString(message.rowFormat))
16747
+ return "rowFormat: string expected";
16702
16748
  if (message.indexes != null && Object.hasOwnProperty.call(message, "indexes")) {
16703
16749
  if (!Array.isArray(message.indexes))
16704
16750
  return "indexes: array expected";
@@ -16740,6 +16786,8 @@ const sqlanvil = $root.sqlanvil = (() => {
16740
16786
  message.charset = String(object.charset);
16741
16787
  if (object.collation != null)
16742
16788
  message.collation = String(object.collation);
16789
+ if (object.rowFormat != null)
16790
+ message.rowFormat = String(object.rowFormat);
16743
16791
  if (object.indexes) {
16744
16792
  if (!Array.isArray(object.indexes))
16745
16793
  throw TypeError(".sqlanvil.MysqlOptions.indexes: array expected");
@@ -16782,6 +16830,7 @@ const sqlanvil = $root.sqlanvil = (() => {
16782
16830
  object.charset = "";
16783
16831
  object.collation = "";
16784
16832
  object.partition = null;
16833
+ object.rowFormat = "";
16785
16834
  }
16786
16835
  if (message.engine != null && Object.hasOwnProperty.call(message, "engine"))
16787
16836
  object.engine = message.engine;
@@ -16796,6 +16845,8 @@ const sqlanvil = $root.sqlanvil = (() => {
16796
16845
  }
16797
16846
  if (message.partition != null && Object.hasOwnProperty.call(message, "partition"))
16798
16847
  object.partition = $root.sqlanvil.MysqlOptions.Partition.toObject(message.partition, options, q + 1);
16848
+ if (message.rowFormat != null && Object.hasOwnProperty.call(message, "rowFormat"))
16849
+ object.rowFormat = message.rowFormat;
16799
16850
  return object;
16800
16851
  };
16801
16852
 
@@ -16834,6 +16885,7 @@ const sqlanvil = $root.sqlanvil = (() => {
16834
16885
  * @property {string|null} [name] Index name
16835
16886
  * @property {Array.<string>|null} [columns] Index columns
16836
16887
  * @property {boolean|null} [unique] Index unique
16888
+ * @property {string|null} [type] Index type
16837
16889
  */
16838
16890
 
16839
16891
  /**
@@ -16876,6 +16928,14 @@ const sqlanvil = $root.sqlanvil = (() => {
16876
16928
  */
16877
16929
  Index.prototype.unique = false;
16878
16930
 
16931
+ /**
16932
+ * Index type.
16933
+ * @member {string} type
16934
+ * @memberof sqlanvil.MysqlOptions.Index
16935
+ * @instance
16936
+ */
16937
+ Index.prototype.type = "";
16938
+
16879
16939
  /**
16880
16940
  * Creates a new Index instance using the specified properties.
16881
16941
  * @function create
@@ -16911,6 +16971,8 @@ const sqlanvil = $root.sqlanvil = (() => {
16911
16971
  writer.uint32(/* id 2, wireType 2 =*/18).string(message.columns[i]);
16912
16972
  if (message.unique != null && Object.hasOwnProperty.call(message, "unique"))
16913
16973
  writer.uint32(/* id 3, wireType 0 =*/24).bool(message.unique);
16974
+ if (message.type != null && Object.hasOwnProperty.call(message, "type"))
16975
+ writer.uint32(/* id 4, wireType 2 =*/34).string(message.type);
16914
16976
  return writer;
16915
16977
  };
16916
16978
 
@@ -16965,6 +17027,10 @@ const sqlanvil = $root.sqlanvil = (() => {
16965
17027
  message.unique = reader.bool();
16966
17028
  break;
16967
17029
  }
17030
+ case 4: {
17031
+ message.type = reader.string();
17032
+ break;
17033
+ }
16968
17034
  default:
16969
17035
  reader.skipType(tag & 7, long);
16970
17036
  break;
@@ -17017,6 +17083,9 @@ const sqlanvil = $root.sqlanvil = (() => {
17017
17083
  if (message.unique != null && Object.hasOwnProperty.call(message, "unique"))
17018
17084
  if (typeof message.unique !== "boolean")
17019
17085
  return "unique: boolean expected";
17086
+ if (message.type != null && Object.hasOwnProperty.call(message, "type"))
17087
+ if (!$util.isString(message.type))
17088
+ return "type: string expected";
17020
17089
  return null;
17021
17090
  };
17022
17091
 
@@ -17049,6 +17118,8 @@ const sqlanvil = $root.sqlanvil = (() => {
17049
17118
  }
17050
17119
  if (object.unique != null)
17051
17120
  message.unique = Boolean(object.unique);
17121
+ if (object.type != null)
17122
+ message.type = String(object.type);
17052
17123
  return message;
17053
17124
  };
17054
17125
 
@@ -17074,6 +17145,7 @@ const sqlanvil = $root.sqlanvil = (() => {
17074
17145
  if (options.defaults) {
17075
17146
  object.name = "";
17076
17147
  object.unique = false;
17148
+ object.type = "";
17077
17149
  }
17078
17150
  if (message.name != null && Object.hasOwnProperty.call(message, "name"))
17079
17151
  object.name = message.name;
@@ -17084,6 +17156,8 @@ const sqlanvil = $root.sqlanvil = (() => {
17084
17156
  }
17085
17157
  if (message.unique != null && Object.hasOwnProperty.call(message, "unique"))
17086
17158
  object.unique = message.unique;
17159
+ if (message.type != null && Object.hasOwnProperty.call(message, "type"))
17160
+ object.type = message.type;
17087
17161
  return object;
17088
17162
  };
17089
17163
 
@@ -48342,6 +48416,9 @@ class MysqlExecutionSql {
48342
48416
  if (opts.collation) {
48343
48417
  suffix += ` collate=${opts.collation}`;
48344
48418
  }
48419
+ if (opts.rowFormat) {
48420
+ suffix += ` row_format=${opts.rowFormat}`;
48421
+ }
48345
48422
  return suffix;
48346
48423
  }
48347
48424
  createIndexes(table) {
@@ -48352,12 +48429,28 @@ class MysqlExecutionSql {
48352
48429
  }
48353
48430
  const target = this.resolveTarget(table.target);
48354
48431
  return indexes.map(index => {
48355
- const unique = index.unique ? "unique " : "";
48356
- const cols = (index.columns || []).map(c => `\`${c}\``).join(", ");
48357
- const name = index.name || this.defaultIndexName(table.target.name, index.columns, !!index.unique);
48358
- return `alter table ${target} add ${unique}index \`${name}\` (${cols})`;
48432
+ const kind = (index.type || "").toLowerCase();
48433
+ if (kind && kind !== "fulltext" && kind !== "spatial") {
48434
+ throw new Error(`mysql index type must be "fulltext" or "spatial" (or omitted); got "${index.type}".`);
48435
+ }
48436
+ if (kind && index.unique) {
48437
+ throw new Error(`a mysql ${kind} index cannot also be unique.`);
48438
+ }
48439
+ const prefix = index.unique ? "unique " : kind ? `${kind} ` : "";
48440
+ const cols = (index.columns || []).map(c => this.indexColumnSql(c)).join(", ");
48441
+ const bareColumns = (index.columns || []).map(c => this.indexColumnName(c));
48442
+ const name = index.name || this.defaultIndexName(table.target.name, bareColumns, !!index.unique);
48443
+ return `alter table ${target} add ${prefix}index \`${name}\` (${cols})`;
48359
48444
  });
48360
48445
  }
48446
+ indexColumnSql(column) {
48447
+ const m = /^(.*?)\((\d+)\)$/.exec(column.trim());
48448
+ return m ? `\`${m[1].trim()}\`(${m[2]})` : `\`${column}\``;
48449
+ }
48450
+ indexColumnName(column) {
48451
+ const m = /^(.*?)\((\d+)\)$/.exec(column.trim());
48452
+ return m ? m[1].trim() : column;
48453
+ }
48361
48454
  defaultIndexName(tableName, columns, unique) {
48362
48455
  const parts = [tableName, ...(columns || [])].filter(Boolean);
48363
48456
  const suffix = unique ? "_key" : "_idx";
@@ -48797,7 +48890,7 @@ function collectEvaluationQueries(queryOrAction, concatenate, queryModifier = (q
48797
48890
  .filter(validationQuery => !!validationQuery.query);
48798
48891
  }
48799
48892
 
48800
- const version = "1.18.0";
48893
+ const version = "1.19.0";
48801
48894
  const dataformVersion = "3.0.61";
48802
48895
 
48803
48896
  async function build(compiledGraph, runConfig, dbadapter) {
package/package.json CHANGED
@@ -64,7 +64,7 @@
64
64
  "bin": {
65
65
  "sqlanvil": "bundle.js"
66
66
  },
67
- "version": "1.18.0",
67
+ "version": "1.19.0",
68
68
  "name": "@sqlanvil/cli",
69
69
  "description": "sqlanvil command line interface.",
70
70
  "main": "bundle.js"
package/worker_bundle.js CHANGED
@@ -5826,6 +5826,7 @@ const sqlanvil = $root.sqlanvil = (() => {
5826
5826
  * @property {sqlanvil.ActionConfig.IMetadata|null} [metadata] ViewConfig metadata
5827
5827
  * @property {string|null} [reservation] ViewConfig reservation
5828
5828
  * @property {sqlanvil.IPostgresOptions|null} [postgres] ViewConfig postgres
5829
+ * @property {sqlanvil.IMysqlOptions|null} [mysql] ViewConfig mysql
5829
5830
  */
5830
5831
 
5831
5832
  /**
@@ -6027,6 +6028,14 @@ const sqlanvil = $root.sqlanvil = (() => {
6027
6028
  */
6028
6029
  ViewConfig.prototype.postgres = null;
6029
6030
 
6031
+ /**
6032
+ * ViewConfig mysql.
6033
+ * @member {sqlanvil.IMysqlOptions|null|undefined} mysql
6034
+ * @memberof sqlanvil.ActionConfig.ViewConfig
6035
+ * @instance
6036
+ */
6037
+ ViewConfig.prototype.mysql = null;
6038
+
6030
6039
  /**
6031
6040
  * Creates a new ViewConfig instance using the specified properties.
6032
6041
  * @function create
@@ -6107,6 +6116,8 @@ const sqlanvil = $root.sqlanvil = (() => {
6107
6116
  writer.uint32(/* id 21, wireType 2 =*/170).string(message.reservation);
6108
6117
  if (message.postgres != null && Object.hasOwnProperty.call(message, "postgres"))
6109
6118
  $root.sqlanvil.PostgresOptions.encode(message.postgres, writer.uint32(/* id 22, wireType 2 =*/178).fork(), q + 1).ldelim();
6119
+ if (message.mysql != null && Object.hasOwnProperty.call(message, "mysql"))
6120
+ $root.sqlanvil.MysqlOptions.encode(message.mysql, writer.uint32(/* id 23, wireType 2 =*/186).fork(), q + 1).ldelim();
6110
6121
  return writer;
6111
6122
  };
6112
6123
 
@@ -6289,6 +6300,10 @@ const sqlanvil = $root.sqlanvil = (() => {
6289
6300
  message.postgres = $root.sqlanvil.PostgresOptions.decode(reader, reader.uint32(), undefined, long + 1);
6290
6301
  break;
6291
6302
  }
6303
+ case 23: {
6304
+ message.mysql = $root.sqlanvil.MysqlOptions.decode(reader, reader.uint32(), undefined, long + 1);
6305
+ break;
6306
+ }
6292
6307
  default:
6293
6308
  reader.skipType(tag & 7, long);
6294
6309
  break;
@@ -6438,6 +6453,11 @@ const sqlanvil = $root.sqlanvil = (() => {
6438
6453
  if (error)
6439
6454
  return "postgres." + error;
6440
6455
  }
6456
+ if (message.mysql != null && Object.hasOwnProperty.call(message, "mysql")) {
6457
+ let error = $root.sqlanvil.MysqlOptions.verify(message.mysql, long + 1);
6458
+ if (error)
6459
+ return "mysql." + error;
6460
+ }
6441
6461
  return null;
6442
6462
  };
6443
6463
 
@@ -6564,6 +6584,11 @@ const sqlanvil = $root.sqlanvil = (() => {
6564
6584
  throw TypeError(".sqlanvil.ActionConfig.ViewConfig.postgres: object expected");
6565
6585
  message.postgres = $root.sqlanvil.PostgresOptions.fromObject(object.postgres, long + 1);
6566
6586
  }
6587
+ if (object.mysql != null) {
6588
+ if (!$util.isObject(object.mysql))
6589
+ throw TypeError(".sqlanvil.ActionConfig.ViewConfig.mysql: object expected");
6590
+ message.mysql = $root.sqlanvil.MysqlOptions.fromObject(object.mysql, long + 1);
6591
+ }
6567
6592
  return message;
6568
6593
  };
6569
6594
 
@@ -6611,6 +6636,7 @@ const sqlanvil = $root.sqlanvil = (() => {
6611
6636
  object.metadata = null;
6612
6637
  object.reservation = "";
6613
6638
  object.postgres = null;
6639
+ object.mysql = null;
6614
6640
  }
6615
6641
  if (message.name != null && Object.hasOwnProperty.call(message, "name"))
6616
6642
  object.name = message.name;
@@ -6687,6 +6713,8 @@ const sqlanvil = $root.sqlanvil = (() => {
6687
6713
  object.reservation = message.reservation;
6688
6714
  if (message.postgres != null && Object.hasOwnProperty.call(message, "postgres"))
6689
6715
  object.postgres = $root.sqlanvil.PostgresOptions.toObject(message.postgres, options, q + 1);
6716
+ if (message.mysql != null && Object.hasOwnProperty.call(message, "mysql"))
6717
+ object.mysql = $root.sqlanvil.MysqlOptions.toObject(message.mysql, options, q + 1);
6690
6718
  return object;
6691
6719
  };
6692
6720
 
@@ -16428,6 +16456,7 @@ const sqlanvil = $root.sqlanvil = (() => {
16428
16456
  * @property {string|null} [engine] MysqlOptions engine
16429
16457
  * @property {string|null} [charset] MysqlOptions charset
16430
16458
  * @property {string|null} [collation] MysqlOptions collation
16459
+ * @property {string|null} [rowFormat] MysqlOptions rowFormat
16431
16460
  * @property {Array.<sqlanvil.MysqlOptions.IIndex>|null} [indexes] MysqlOptions indexes
16432
16461
  * @property {sqlanvil.MysqlOptions.IPartition|null} [partition] MysqlOptions partition
16433
16462
  */
@@ -16472,6 +16501,14 @@ const sqlanvil = $root.sqlanvil = (() => {
16472
16501
  */
16473
16502
  MysqlOptions.prototype.collation = "";
16474
16503
 
16504
+ /**
16505
+ * MysqlOptions rowFormat.
16506
+ * @member {string} rowFormat
16507
+ * @memberof sqlanvil.MysqlOptions
16508
+ * @instance
16509
+ */
16510
+ MysqlOptions.prototype.rowFormat = "";
16511
+
16475
16512
  /**
16476
16513
  * MysqlOptions indexes.
16477
16514
  * @member {Array.<sqlanvil.MysqlOptions.IIndex>} indexes
@@ -16527,6 +16564,8 @@ const sqlanvil = $root.sqlanvil = (() => {
16527
16564
  $root.sqlanvil.MysqlOptions.Index.encode(message.indexes[i], writer.uint32(/* id 4, wireType 2 =*/34).fork(), q + 1).ldelim();
16528
16565
  if (message.partition != null && Object.hasOwnProperty.call(message, "partition"))
16529
16566
  $root.sqlanvil.MysqlOptions.Partition.encode(message.partition, writer.uint32(/* id 5, wireType 2 =*/42).fork(), q + 1).ldelim();
16567
+ if (message.rowFormat != null && Object.hasOwnProperty.call(message, "rowFormat"))
16568
+ writer.uint32(/* id 6, wireType 2 =*/50).string(message.rowFormat);
16530
16569
  return writer;
16531
16570
  };
16532
16571
 
@@ -16579,6 +16618,10 @@ const sqlanvil = $root.sqlanvil = (() => {
16579
16618
  message.collation = reader.string();
16580
16619
  break;
16581
16620
  }
16621
+ case 6: {
16622
+ message.rowFormat = reader.string();
16623
+ break;
16624
+ }
16582
16625
  case 4: {
16583
16626
  if (!(message.indexes && message.indexes.length))
16584
16627
  message.indexes = [];
@@ -16637,6 +16680,9 @@ const sqlanvil = $root.sqlanvil = (() => {
16637
16680
  if (message.collation != null && Object.hasOwnProperty.call(message, "collation"))
16638
16681
  if (!$util.isString(message.collation))
16639
16682
  return "collation: string expected";
16683
+ if (message.rowFormat != null && Object.hasOwnProperty.call(message, "rowFormat"))
16684
+ if (!$util.isString(message.rowFormat))
16685
+ return "rowFormat: string expected";
16640
16686
  if (message.indexes != null && Object.hasOwnProperty.call(message, "indexes")) {
16641
16687
  if (!Array.isArray(message.indexes))
16642
16688
  return "indexes: array expected";
@@ -16678,6 +16724,8 @@ const sqlanvil = $root.sqlanvil = (() => {
16678
16724
  message.charset = String(object.charset);
16679
16725
  if (object.collation != null)
16680
16726
  message.collation = String(object.collation);
16727
+ if (object.rowFormat != null)
16728
+ message.rowFormat = String(object.rowFormat);
16681
16729
  if (object.indexes) {
16682
16730
  if (!Array.isArray(object.indexes))
16683
16731
  throw TypeError(".sqlanvil.MysqlOptions.indexes: array expected");
@@ -16720,6 +16768,7 @@ const sqlanvil = $root.sqlanvil = (() => {
16720
16768
  object.charset = "";
16721
16769
  object.collation = "";
16722
16770
  object.partition = null;
16771
+ object.rowFormat = "";
16723
16772
  }
16724
16773
  if (message.engine != null && Object.hasOwnProperty.call(message, "engine"))
16725
16774
  object.engine = message.engine;
@@ -16734,6 +16783,8 @@ const sqlanvil = $root.sqlanvil = (() => {
16734
16783
  }
16735
16784
  if (message.partition != null && Object.hasOwnProperty.call(message, "partition"))
16736
16785
  object.partition = $root.sqlanvil.MysqlOptions.Partition.toObject(message.partition, options, q + 1);
16786
+ if (message.rowFormat != null && Object.hasOwnProperty.call(message, "rowFormat"))
16787
+ object.rowFormat = message.rowFormat;
16737
16788
  return object;
16738
16789
  };
16739
16790
 
@@ -16772,6 +16823,7 @@ const sqlanvil = $root.sqlanvil = (() => {
16772
16823
  * @property {string|null} [name] Index name
16773
16824
  * @property {Array.<string>|null} [columns] Index columns
16774
16825
  * @property {boolean|null} [unique] Index unique
16826
+ * @property {string|null} [type] Index type
16775
16827
  */
16776
16828
 
16777
16829
  /**
@@ -16814,6 +16866,14 @@ const sqlanvil = $root.sqlanvil = (() => {
16814
16866
  */
16815
16867
  Index.prototype.unique = false;
16816
16868
 
16869
+ /**
16870
+ * Index type.
16871
+ * @member {string} type
16872
+ * @memberof sqlanvil.MysqlOptions.Index
16873
+ * @instance
16874
+ */
16875
+ Index.prototype.type = "";
16876
+
16817
16877
  /**
16818
16878
  * Creates a new Index instance using the specified properties.
16819
16879
  * @function create
@@ -16849,6 +16909,8 @@ const sqlanvil = $root.sqlanvil = (() => {
16849
16909
  writer.uint32(/* id 2, wireType 2 =*/18).string(message.columns[i]);
16850
16910
  if (message.unique != null && Object.hasOwnProperty.call(message, "unique"))
16851
16911
  writer.uint32(/* id 3, wireType 0 =*/24).bool(message.unique);
16912
+ if (message.type != null && Object.hasOwnProperty.call(message, "type"))
16913
+ writer.uint32(/* id 4, wireType 2 =*/34).string(message.type);
16852
16914
  return writer;
16853
16915
  };
16854
16916
 
@@ -16903,6 +16965,10 @@ const sqlanvil = $root.sqlanvil = (() => {
16903
16965
  message.unique = reader.bool();
16904
16966
  break;
16905
16967
  }
16968
+ case 4: {
16969
+ message.type = reader.string();
16970
+ break;
16971
+ }
16906
16972
  default:
16907
16973
  reader.skipType(tag & 7, long);
16908
16974
  break;
@@ -16955,6 +17021,9 @@ const sqlanvil = $root.sqlanvil = (() => {
16955
17021
  if (message.unique != null && Object.hasOwnProperty.call(message, "unique"))
16956
17022
  if (typeof message.unique !== "boolean")
16957
17023
  return "unique: boolean expected";
17024
+ if (message.type != null && Object.hasOwnProperty.call(message, "type"))
17025
+ if (!$util.isString(message.type))
17026
+ return "type: string expected";
16958
17027
  return null;
16959
17028
  };
16960
17029
 
@@ -16987,6 +17056,8 @@ const sqlanvil = $root.sqlanvil = (() => {
16987
17056
  }
16988
17057
  if (object.unique != null)
16989
17058
  message.unique = Boolean(object.unique);
17059
+ if (object.type != null)
17060
+ message.type = String(object.type);
16990
17061
  return message;
16991
17062
  };
16992
17063
 
@@ -17012,6 +17083,7 @@ const sqlanvil = $root.sqlanvil = (() => {
17012
17083
  if (options.defaults) {
17013
17084
  object.name = "";
17014
17085
  object.unique = false;
17086
+ object.type = "";
17015
17087
  }
17016
17088
  if (message.name != null && Object.hasOwnProperty.call(message, "name"))
17017
17089
  object.name = message.name;
@@ -17022,6 +17094,8 @@ const sqlanvil = $root.sqlanvil = (() => {
17022
17094
  }
17023
17095
  if (message.unique != null && Object.hasOwnProperty.call(message, "unique"))
17024
17096
  object.unique = message.unique;
17097
+ if (message.type != null && Object.hasOwnProperty.call(message, "type"))
17098
+ object.type = message.type;
17025
17099
  return object;
17026
17100
  };
17027
17101