meadow 2.0.11 → 2.0.12
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/package.json +1 -1
- package/source/providers/Meadow-Provider-ALASQL.js +3 -0
- package/source/providers/Meadow-Provider-MSSQL.js +12 -1
- package/source/providers/Meadow-Provider-MeadowEndpoints.js +3 -0
- package/source/providers/Meadow-Provider-MySQL.js +20 -1
- package/source/providers/Meadow-Provider-None.js +3 -0
package/package.json
CHANGED
|
@@ -31,10 +31,18 @@ var MeadowProvider = function ()
|
|
|
31
31
|
{
|
|
32
32
|
return _Fable.MeadowMSSQLProvider.pool;
|
|
33
33
|
}
|
|
34
|
-
|
|
35
34
|
return false;
|
|
36
35
|
};
|
|
37
36
|
|
|
37
|
+
var getProvider = function ()
|
|
38
|
+
{
|
|
39
|
+
if (typeof (_Fable.MeadowMSSQLProvider) == 'object' && _Fable.MeadowMSSQLProvider.connected)
|
|
40
|
+
{
|
|
41
|
+
return _Fable.MeadowMSSQLProvider;
|
|
42
|
+
}
|
|
43
|
+
return false;
|
|
44
|
+
}
|
|
45
|
+
|
|
38
46
|
// The Meadow marshaller also passes in the Schema as the third parameter, but this is a blunt function ATM.
|
|
39
47
|
var marshalRecordFromSourceToObject = function (pObject, pRecord)
|
|
40
48
|
{
|
|
@@ -394,6 +402,9 @@ var MeadowProvider = function ()
|
|
|
394
402
|
Undelete: Undelete,
|
|
395
403
|
Count: Count,
|
|
396
404
|
|
|
405
|
+
getProvider: getProvider,
|
|
406
|
+
providerCreatesSupported: true,
|
|
407
|
+
|
|
397
408
|
new: createNew
|
|
398
409
|
});
|
|
399
410
|
|
|
@@ -25,7 +25,6 @@ var MeadowProvider = function ()
|
|
|
25
25
|
*/
|
|
26
26
|
var getSQLPool = function ()
|
|
27
27
|
{
|
|
28
|
-
let tmpSqlPool = false;
|
|
29
28
|
if (typeof (_Fable.MeadowMySQLConnectionPool) == 'object')
|
|
30
29
|
{
|
|
31
30
|
// This is where the old-style SQL Connection pool is. Refactor doesn't even look for it anymore
|
|
@@ -41,6 +40,23 @@ var MeadowProvider = function ()
|
|
|
41
40
|
return false;
|
|
42
41
|
};
|
|
43
42
|
|
|
43
|
+
var getProvider = function ()
|
|
44
|
+
{
|
|
45
|
+
if (typeof (_Fable.MeadowMySQLConnectionPool) == 'object')
|
|
46
|
+
{
|
|
47
|
+
// This is where the old-style SQL Connection pool is. Refactor doesn't even look for it anymore
|
|
48
|
+
return _Fable.MeadowMySQLConnectionPool;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
// New-style default connection pool provider
|
|
52
|
+
if (typeof (_Fable.MeadowMySQLProvider) == 'object')
|
|
53
|
+
{
|
|
54
|
+
return _Fable.MeadowMySQLProvider;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
return false;
|
|
58
|
+
}
|
|
59
|
+
|
|
44
60
|
// The Meadow marshaller also passes in the Schema as the third parameter, but this is a blunt function ATM.
|
|
45
61
|
var marshalRecordFromSourceToObject = function (pObject, pRecord)
|
|
46
62
|
{
|
|
@@ -281,6 +297,9 @@ var MeadowProvider = function ()
|
|
|
281
297
|
Undelete: Undelete,
|
|
282
298
|
Count: Count,
|
|
283
299
|
|
|
300
|
+
getProvider: getProvider,
|
|
301
|
+
providerCreatesSupported: false,
|
|
302
|
+
|
|
284
303
|
new: createNew
|
|
285
304
|
});
|
|
286
305
|
|