rads-db 3.0.6 → 3.0.8

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.
@@ -143,7 +143,7 @@ function getBlobServiceClient(options) {
143
143
  return blobServiceClientCache[options.connectionString];
144
144
  }
145
145
  function getContainerClient(options) {
146
- const containerName = options.defaultContainer || "radsdb";
146
+ const containerName = options.defaultContainer || "rads";
147
147
  const key = `${options.connectionString}|${containerName}`;
148
148
  if (!containerClientCache[key]) {
149
149
  const blobServiceClient = getBlobServiceClient(options);
@@ -126,7 +126,7 @@ function getBlobServiceClient(options) {
126
126
  return blobServiceClientCache[options.connectionString];
127
127
  }
128
128
  function getContainerClient(options) {
129
- const containerName = options.defaultContainer || "radsdb";
129
+ const containerName = options.defaultContainer || "rads";
130
130
  const key = `${options.connectionString}|${containerName}`;
131
131
  if (!containerClientCache[key]) {
132
132
  const blobServiceClient = getBlobServiceClient(options);
@@ -6,7 +6,7 @@ Object.defineProperty(exports, "__esModule", {
6
6
  module.exports = void 0;
7
7
  var _storageBlob = require("@azure/storage-blob");
8
8
  var _default = options => {
9
- const defaultContainer = options.defaultContainer || "files";
9
+ const defaultContainer = options.defaultContainer || "rads";
10
10
  const connectionString = options.connectionString;
11
11
  const client = new _storageBlob.BlobServiceClient(connectionString, void 0, {
12
12
  retryOptions: {
@@ -1,6 +1,6 @@
1
1
  import { BlobServiceClient } from "@azure/storage-blob";
2
2
  export default (options) => {
3
- const defaultContainer = options.defaultContainer || "files";
3
+ const defaultContainer = options.defaultContainer || "rads";
4
4
  const connectionString = options.connectionString;
5
5
  const client = new BlobServiceClient(connectionString, void 0, { retryOptions: { maxTries: 1 } });
6
6
  const driver = {
@@ -159,10 +159,10 @@ function getWhereFieldsFor(schema, type, fieldKey) {
159
159
  return [`${name}?: ${fieldTypeName}_Where`, ...commonWhereFields];
160
160
  }
161
161
  if (isEnum) {
162
- return [`${name}?: ${fieldTypeName}`, ...getWhereFieldsForString(fieldKey), ...commonWhereFields];
162
+ return [`${name}?: ${fieldTypeName}`, `${name}_in?: ${fieldTypeName}[]`, ...getWhereFieldsForString(fieldKey), ...commonWhereFields];
163
163
  }
164
164
  if (isPrimitive) {
165
- return [`${name}?: ${fieldTypeName}`, ...getWhereFieldsForPrimitive(schema, type, fieldKey), ...commonWhereFields];
165
+ return [`${name}?: ${fieldTypeName}`, `${name}_in?: ${fieldTypeName}[]`, ...getWhereFieldsForPrimitive(schema, type, fieldKey), ...commonWhereFields];
166
166
  }
167
167
  throw new Error(`Unknown type: ${fieldTypeName}`);
168
168
  }
@@ -165,10 +165,20 @@ function getWhereFieldsFor(schema, type, fieldKey) {
165
165
  return [`${name}?: ${fieldTypeName}_Where`, ...commonWhereFields];
166
166
  }
167
167
  if (isEnum) {
168
- return [`${name}?: ${fieldTypeName}`, ...getWhereFieldsForString(fieldKey), ...commonWhereFields];
168
+ return [
169
+ `${name}?: ${fieldTypeName}`,
170
+ `${name}_in?: ${fieldTypeName}[]`,
171
+ ...getWhereFieldsForString(fieldKey),
172
+ ...commonWhereFields
173
+ ];
169
174
  }
170
175
  if (isPrimitive) {
171
- return [`${name}?: ${fieldTypeName}`, ...getWhereFieldsForPrimitive(schema, type, fieldKey), ...commonWhereFields];
176
+ return [
177
+ `${name}?: ${fieldTypeName}`,
178
+ `${name}_in?: ${fieldTypeName}[]`,
179
+ ...getWhereFieldsForPrimitive(schema, type, fieldKey),
180
+ ...commonWhereFields
181
+ ];
172
182
  }
173
183
  throw new Error(`Unknown type: ${fieldTypeName}`);
174
184
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rads-db",
3
- "version": "3.0.6",
3
+ "version": "3.0.8",
4
4
  "files": [
5
5
  "dist",
6
6
  "drivers",