@sqlanvil/core 1.10.0 → 1.11.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.d.ts CHANGED
@@ -4832,6 +4832,9 @@ namespace sqlanvil {
4832
4832
 
4833
4833
  /** MysqlOptions indexes */
4834
4834
  indexes?: (sqlanvil.MysqlOptions.IIndex[]|null);
4835
+
4836
+ /** MysqlOptions partition */
4837
+ partition?: (sqlanvil.MysqlOptions.IPartition|null);
4835
4838
  }
4836
4839
 
4837
4840
  /** Represents a MysqlOptions. */
@@ -4855,6 +4858,9 @@ namespace sqlanvil {
4855
4858
  /** MysqlOptions indexes. */
4856
4859
  public indexes: sqlanvil.MysqlOptions.IIndex[];
4857
4860
 
4861
+ /** MysqlOptions partition. */
4862
+ public partition?: (sqlanvil.MysqlOptions.IPartition|null);
4863
+
4858
4864
  /**
4859
4865
  * Creates a new MysqlOptions instance using the specified properties.
4860
4866
  * @param [properties] Properties to set
@@ -5043,6 +5049,235 @@ namespace sqlanvil {
5043
5049
  */
5044
5050
  public static getTypeUrl(typeUrlPrefix?: string): string;
5045
5051
  }
5052
+
5053
+ /** Properties of a Partition. */
5054
+ interface IPartition {
5055
+
5056
+ /** Partition kind */
5057
+ kind?: (sqlanvil.MysqlOptions.Partition.Kind|null);
5058
+
5059
+ /** Partition expression */
5060
+ expression?: (string|null);
5061
+
5062
+ /** Partition partitions */
5063
+ partitions?: (sqlanvil.MysqlOptions.Partition.IBound[]|null);
5064
+
5065
+ /** Partition count */
5066
+ count?: (number|null);
5067
+ }
5068
+
5069
+ /** Represents a Partition. */
5070
+ class Partition implements IPartition {
5071
+
5072
+ /**
5073
+ * Constructs a new Partition.
5074
+ * @param [properties] Properties to set
5075
+ */
5076
+ constructor(properties?: sqlanvil.MysqlOptions.IPartition);
5077
+
5078
+ /** Partition kind. */
5079
+ public kind: sqlanvil.MysqlOptions.Partition.Kind;
5080
+
5081
+ /** Partition expression. */
5082
+ public expression: string;
5083
+
5084
+ /** Partition partitions. */
5085
+ public partitions: sqlanvil.MysqlOptions.Partition.IBound[];
5086
+
5087
+ /** Partition count. */
5088
+ public count: number;
5089
+
5090
+ /**
5091
+ * Creates a new Partition instance using the specified properties.
5092
+ * @param [properties] Properties to set
5093
+ * @returns Partition instance
5094
+ */
5095
+ public static create(properties?: sqlanvil.MysqlOptions.IPartition): sqlanvil.MysqlOptions.Partition;
5096
+
5097
+ /**
5098
+ * Encodes the specified Partition message. Does not implicitly {@link sqlanvil.MysqlOptions.Partition.verify|verify} messages.
5099
+ * @param message Partition message or plain object to encode
5100
+ * @param [writer] Writer to encode to
5101
+ * @returns Writer
5102
+ */
5103
+ public static encode(message: sqlanvil.MysqlOptions.IPartition, writer?: $protobuf.Writer): $protobuf.Writer;
5104
+
5105
+ /**
5106
+ * Encodes the specified Partition message, length delimited. Does not implicitly {@link sqlanvil.MysqlOptions.Partition.verify|verify} messages.
5107
+ * @param message Partition message or plain object to encode
5108
+ * @param [writer] Writer to encode to
5109
+ * @returns Writer
5110
+ */
5111
+ public static encodeDelimited(message: sqlanvil.MysqlOptions.IPartition, writer?: $protobuf.Writer): $protobuf.Writer;
5112
+
5113
+ /**
5114
+ * Decodes a Partition message from the specified reader or buffer.
5115
+ * @param reader Reader or buffer to decode from
5116
+ * @param [length] Message length if known beforehand
5117
+ * @returns Partition
5118
+ * @throws {Error} If the payload is not a reader or valid buffer
5119
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
5120
+ */
5121
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): sqlanvil.MysqlOptions.Partition;
5122
+
5123
+ /**
5124
+ * Decodes a Partition message from the specified reader or buffer, length delimited.
5125
+ * @param reader Reader or buffer to decode from
5126
+ * @returns Partition
5127
+ * @throws {Error} If the payload is not a reader or valid buffer
5128
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
5129
+ */
5130
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): sqlanvil.MysqlOptions.Partition;
5131
+
5132
+ /**
5133
+ * Verifies a Partition message.
5134
+ * @param message Plain object to verify
5135
+ * @returns `null` if valid, otherwise the reason why it is not
5136
+ */
5137
+ public static verify(message: { [k: string]: any }): (string|null);
5138
+
5139
+ /**
5140
+ * Creates a Partition message from a plain object. Also converts values to their respective internal types.
5141
+ * @param object Plain object
5142
+ * @returns Partition
5143
+ */
5144
+ public static fromObject(object: { [k: string]: any }): sqlanvil.MysqlOptions.Partition;
5145
+
5146
+ /**
5147
+ * Creates a plain object from a Partition message. Also converts values to other types if specified.
5148
+ * @param message Partition
5149
+ * @param [options] Conversion options
5150
+ * @returns Plain object
5151
+ */
5152
+ public static toObject(message: sqlanvil.MysqlOptions.Partition, options?: $protobuf.IConversionOptions): { [k: string]: any };
5153
+
5154
+ /**
5155
+ * Converts this Partition to JSON.
5156
+ * @returns JSON object
5157
+ */
5158
+ public toJSON(): { [k: string]: any };
5159
+
5160
+ /**
5161
+ * Gets the default type url for Partition
5162
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
5163
+ * @returns The default type url
5164
+ */
5165
+ public static getTypeUrl(typeUrlPrefix?: string): string;
5166
+ }
5167
+
5168
+ namespace Partition {
5169
+
5170
+ /** Kind enum. */
5171
+ enum Kind {
5172
+ RANGE = 0,
5173
+ LIST = 1,
5174
+ HASH = 2,
5175
+ KEY = 3
5176
+ }
5177
+
5178
+ /** Properties of a Bound. */
5179
+ interface IBound {
5180
+
5181
+ /** Bound name */
5182
+ name?: (string|null);
5183
+
5184
+ /** Bound values */
5185
+ values?: (string|null);
5186
+ }
5187
+
5188
+ /** Represents a Bound. */
5189
+ class Bound implements IBound {
5190
+
5191
+ /**
5192
+ * Constructs a new Bound.
5193
+ * @param [properties] Properties to set
5194
+ */
5195
+ constructor(properties?: sqlanvil.MysqlOptions.Partition.IBound);
5196
+
5197
+ /** Bound name. */
5198
+ public name: string;
5199
+
5200
+ /** Bound values. */
5201
+ public values: string;
5202
+
5203
+ /**
5204
+ * Creates a new Bound instance using the specified properties.
5205
+ * @param [properties] Properties to set
5206
+ * @returns Bound instance
5207
+ */
5208
+ public static create(properties?: sqlanvil.MysqlOptions.Partition.IBound): sqlanvil.MysqlOptions.Partition.Bound;
5209
+
5210
+ /**
5211
+ * Encodes the specified Bound message. Does not implicitly {@link sqlanvil.MysqlOptions.Partition.Bound.verify|verify} messages.
5212
+ * @param message Bound message or plain object to encode
5213
+ * @param [writer] Writer to encode to
5214
+ * @returns Writer
5215
+ */
5216
+ public static encode(message: sqlanvil.MysqlOptions.Partition.IBound, writer?: $protobuf.Writer): $protobuf.Writer;
5217
+
5218
+ /**
5219
+ * Encodes the specified Bound message, length delimited. Does not implicitly {@link sqlanvil.MysqlOptions.Partition.Bound.verify|verify} messages.
5220
+ * @param message Bound message or plain object to encode
5221
+ * @param [writer] Writer to encode to
5222
+ * @returns Writer
5223
+ */
5224
+ public static encodeDelimited(message: sqlanvil.MysqlOptions.Partition.IBound, writer?: $protobuf.Writer): $protobuf.Writer;
5225
+
5226
+ /**
5227
+ * Decodes a Bound message from the specified reader or buffer.
5228
+ * @param reader Reader or buffer to decode from
5229
+ * @param [length] Message length if known beforehand
5230
+ * @returns Bound
5231
+ * @throws {Error} If the payload is not a reader or valid buffer
5232
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
5233
+ */
5234
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): sqlanvil.MysqlOptions.Partition.Bound;
5235
+
5236
+ /**
5237
+ * Decodes a Bound message from the specified reader or buffer, length delimited.
5238
+ * @param reader Reader or buffer to decode from
5239
+ * @returns Bound
5240
+ * @throws {Error} If the payload is not a reader or valid buffer
5241
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
5242
+ */
5243
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): sqlanvil.MysqlOptions.Partition.Bound;
5244
+
5245
+ /**
5246
+ * Verifies a Bound message.
5247
+ * @param message Plain object to verify
5248
+ * @returns `null` if valid, otherwise the reason why it is not
5249
+ */
5250
+ public static verify(message: { [k: string]: any }): (string|null);
5251
+
5252
+ /**
5253
+ * Creates a Bound message from a plain object. Also converts values to their respective internal types.
5254
+ * @param object Plain object
5255
+ * @returns Bound
5256
+ */
5257
+ public static fromObject(object: { [k: string]: any }): sqlanvil.MysqlOptions.Partition.Bound;
5258
+
5259
+ /**
5260
+ * Creates a plain object from a Bound message. Also converts values to other types if specified.
5261
+ * @param message Bound
5262
+ * @param [options] Conversion options
5263
+ * @returns Plain object
5264
+ */
5265
+ public static toObject(message: sqlanvil.MysqlOptions.Partition.Bound, options?: $protobuf.IConversionOptions): { [k: string]: any };
5266
+
5267
+ /**
5268
+ * Converts this Bound to JSON.
5269
+ * @returns JSON object
5270
+ */
5271
+ public toJSON(): { [k: string]: any };
5272
+
5273
+ /**
5274
+ * Gets the default type url for Bound
5275
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
5276
+ * @returns The default type url
5277
+ */
5278
+ public static getTypeUrl(typeUrlPrefix?: string): string;
5279
+ }
5280
+ }
5046
5281
  }
5047
5282
 
5048
5283
  /** Properties of a SupabaseOptions. */
@@ -15066,7 +15301,7 @@ declare function jitCompiler(rpcCallback: RpcCallback): IJitCompiler;
15066
15301
 
15067
15302
  declare function main(coreExecutionRequest: Uint8Array | string): Uint8Array | string;
15068
15303
 
15069
- declare const version = "1.10.0";
15304
+ declare const version = "1.11.0";
15070
15305
 
15071
15306
  declare const session: Session;
15072
15307
  declare const supportedFeatures: sqlanvil.SupportedFeatures[];