meadow 2.0.16 → 2.0.17
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/Dockerfile_LUXURYCode
CHANGED
|
@@ -26,47 +26,6 @@ RUN ( sudo mysqld_safe --skip-grant-tables --skip-networking & ) && sleep 5 &&
|
|
|
26
26
|
# Import the initial database
|
|
27
27
|
RUN sudo service mariadb restart && sleep 5 && mysql -u root -p"123456789" -e "CREATE DATABASE FableTest;"
|
|
28
28
|
|
|
29
|
-
RUN echo "...installing vscode extensions..."
|
|
30
|
-
# Mocha unit testing in the sidebar
|
|
31
|
-
RUN code-server --install-extension hbenl.vscode-mocha-test-adapter
|
|
32
|
-
RUN code-server --install-extension hbenl.test-adapter-converter
|
|
33
|
-
RUN code-server --install-extension hbenl.vscode-test-explorer
|
|
34
|
-
|
|
35
|
-
# Magic indentation rainbow
|
|
36
|
-
RUN code-server --install-extension oderwat.indent-rainbow
|
|
37
|
-
RUN code-server --install-extension dbaeumer.vscode-eslint
|
|
38
|
-
|
|
39
|
-
# Contextual git
|
|
40
|
-
RUN code-server --install-extension eamodio.gitlens
|
|
41
|
-
|
|
42
|
-
# Other extensions (uncomment them to have them automagic, or run this from a terminal to install in the container):
|
|
43
|
-
|
|
44
|
-
# SQL Tools
|
|
45
|
-
RUN code-server --install-extension mtxr.sqltools
|
|
46
|
-
RUN code-server --install-extension mtxr.sqltools-driver-mysql
|
|
47
|
-
|
|
48
|
-
# Microsoft's AI code completion
|
|
49
|
-
# RUN code-server --install-extension VisualStudioExptTeam.vscodeintellicode
|
|
50
|
-
|
|
51
|
-
# Live server -- make sure to open up the port on the docker image
|
|
52
|
-
# RUN code-server --install-extension ritwickdey.LiveServer
|
|
53
|
-
|
|
54
|
-
# Quick link to required modules' documentation
|
|
55
|
-
# RUN code-server --install-extension bengreenier.vscode-node-readme
|
|
56
|
-
|
|
57
|
-
# Switch up fonts
|
|
58
|
-
# RUN code-server --install-extension evan-buss.font-switcher
|
|
59
|
-
|
|
60
|
-
# Icons
|
|
61
|
-
# RUN code-server --install-extension vscode-icons-team.vscode-icons
|
|
62
|
-
# RUN code-server --install-extension PKief.material-icon-theme
|
|
63
|
-
|
|
64
|
-
# Hover over CSS colors to see them previewed
|
|
65
|
-
# RUN code-server --install-extension bierner.color-info
|
|
66
|
-
|
|
67
|
-
# An easy on the eyes color theme
|
|
68
|
-
# RUN code-server --install-extension daylerees.rainglow
|
|
69
|
-
|
|
70
29
|
SHELL ["/bin/bash", "-c"]
|
|
71
30
|
USER coder
|
|
72
31
|
|
|
@@ -88,4 +47,4 @@ RUN . ~/.nvm/nvm.sh && source ~/.bashrc && nvm alias default 14
|
|
|
88
47
|
|
|
89
48
|
WORKDIR /home/coder/meadow
|
|
90
49
|
|
|
91
|
-
ENTRYPOINT ["/usr/bin/MySQL-Laden-Entry.sh"]
|
|
50
|
+
ENTRYPOINT ["/usr/bin/MySQL-Laden-Entry.sh"]
|
package/package.json
CHANGED
|
@@ -60,6 +60,12 @@ var MeadowProvider = function ()
|
|
|
60
60
|
let tmpPreparedStatement = _Fable.MeadowMSSQLProvider.preparedStatement;
|
|
61
61
|
// Map the Parameters to Types
|
|
62
62
|
let tmpParameterTypeKeys = Object.keys(pQuery.query.parameterTypes)
|
|
63
|
+
const tmpColumns = pQuery.query.schema;
|
|
64
|
+
const tmpSchemaByColumn = {};
|
|
65
|
+
for (let i = 0; i < tmpColumns.length; i++)
|
|
66
|
+
{
|
|
67
|
+
tmpSchemaByColumn[tmpColumns[i].Column] = tmpColumns[i];
|
|
68
|
+
}
|
|
63
69
|
for (let i = 0; i < tmpParameterTypeKeys.length; i++)
|
|
64
70
|
{
|
|
65
71
|
let tmpParameterType = pQuery.query.parameterTypes[tmpParameterTypeKeys[i]];
|
|
@@ -79,6 +85,21 @@ var MeadowProvider = function ()
|
|
|
79
85
|
{
|
|
80
86
|
tmpParameterEntry = _Fable.MeadowMSSQLProvider.MSSQL.VarChar(_Fable.MeadowMSSQLProvider.MSSQL.Max);
|
|
81
87
|
}
|
|
88
|
+
else if (tmpParameterType === 'Decimal')
|
|
89
|
+
{
|
|
90
|
+
const tmpSize = tmpSchemaByColumn[tmpParameterTypeKeys[i]]?.Size;
|
|
91
|
+
if (tmpSize && typeof tmpSize === 'string')
|
|
92
|
+
{
|
|
93
|
+
let [ tmpDigitsStr, tmpDecimalDigitsStr ] = tmpSize.split(',');
|
|
94
|
+
const tmpDigits = parseInt(tmpDigitsStr.trim());
|
|
95
|
+
const tmpDecimalDigits = tmpDecimalDigitsStr ? parseInt(tmpDecimalDigitsStr.trim()) : 0;
|
|
96
|
+
tmpParameterEntry = _Fable.MeadowMSSQLProvider.MSSQL.Decimal(tmpDigits, tmpDecimalDigits);
|
|
97
|
+
}
|
|
98
|
+
else
|
|
99
|
+
{
|
|
100
|
+
tmpParameterEntry = _Fable.MeadowMSSQLProvider.MSSQL.Decimal(18, 8);
|
|
101
|
+
}
|
|
102
|
+
}
|
|
82
103
|
else
|
|
83
104
|
{
|
|
84
105
|
tmpParameterEntry = _Fable.MeadowMSSQLProvider.MSSQL[tmpParameterType];
|