|
1 | | -# JS stored procedure and function overview |
| 1 | +# js_lang stored procedure and function overview |
2 | 2 |
|
3 | | ---8<--- "experimental.md" |
| 3 | +--8<--- "tech.preview.md:5:5" |
4 | 4 |
|
5 | | -Integrating stored procedures and functions in JS within a MySQL-compatible database provides a versatile and practical approach to managing complex data processing tasks. This method significantly enhances performance, allowing developers to execute intricate operations more efficiently. For those proficient in JS, this approach streamlines the development process, reducing the load on client applications and optimizing overall system performance. By employing stored procedures and functions, developers achieve faster data processing and facilitate more manageable maintenance and scalability, making it an ideal solution for those skilled in JS. |
| 5 | +You can use stored procedures and functions written in JS with a MySQL-compatible database. This feature helps you manage complex data processing tasks. This method improves performance. This method lets developers run complex operations faster. If you know JS, you can use your existing skills. Using stored procedures and functions reduces the work done by client applications. Using stored procedures and functions also improves overall system performance. Using stored procedures and functions helps developers process data faster. Using stored procedures and functions also makes maintenance and scaling easier. This approach is a good solution for developers who know JS. |
6 | 6 |
|
7 | 7 | | Benefit | Description | |
8 | 8 | |------------------------------------|-----------------------------------------------------------------------------------------------| |
9 | | -| Familiarity | Developers who are already proficient in JS can leverage their existing skills. | |
10 | | -| Efficiency | JS allows for more efficient execution of complex data processing tasks. | |
11 | | -| Performance | Stored procedures and functions in JS can enhance database performance by reducing client load.| |
12 | | -| Reusability | Encapsulated logic in stored procedures and functions can be reused across multiple applications.| |
13 | | -| Scalability | Facilitates easier maintenance and scalability of database operations. | |
14 | | -| Simplified Development Process | Streamlines the development process, making it more manageable for those skilled in JS. | |
15 | | -| Integration with Client Applications| Seamless integration with client applications, reducing the need for additional processing. | |
16 | | -| Optimization | Optimizes overall system performance through efficient data processing. | |
| 9 | +| Familiarity | Developers who already know JS can use their existing skills. | |
| 10 | +| Efficiency | JS can run complex data processing tasks more efficiently. | |
| 11 | +| Performance | Stored procedures and functions in JS improve database performance. They reduce the work done by client applications.| |
| 12 | +| Reusability | You can write code once in stored procedures and functions. Then you can use that code in multiple applications.| |
| 13 | +| Scalability | Using stored procedures and functions makes database operations easier to maintain and scale. | |
| 14 | +| Simplified Development Process | This feature makes development easier for developers who know JS. | |
| 15 | +| Integration with Client Applications| Stored procedures and functions work well with client applications. You need less additional processing.| |
| 16 | +| Optimization | This feature improves overall system performance through efficient data processing. | |
17 | 17 |
|
18 | 18 |
|
19 | 19 | ## Limitations |
@@ -73,3 +73,11 @@ The system always maps JS null and undefined values to SQL NULL, regardless of t |
73 | 73 | | `SET` | - Numbers: stored as integers/doubles<br>- BigInts: stored as integers<br>- Others: converted to strings with charset conversion if needed | Tries native storage before falling back to strings | `1` → `1`<br>`"value"` → `"value"` | |
74 | 74 | | `GEOMETRY` | - Valid `ArrayBuffer`/`View`: stored as binary<br>- Others: cause an error | Enforces format rules to maintain spatial integrity | valid buffer → `GEOMETRY` | |
75 | 75 | | `JSON` | Converted using `JSON.stringify()` | Converts objects or arrays to serialized strings | `{key: "value"}` → `"{"key":"value"}"` | |
| 76 | + |
| 77 | +## Further reading |
| 78 | + |
| 79 | +- [Install js_lang component](install-js-lang.md) |
| 80 | +- [Uninstall the js_lang component](uninstall-js-lang.md) |
| 81 | +- [js_lang stored function or procedure](js-lang-procedures.md) |
| 82 | +- [js_lang privileges](js-lang-privileges.md) |
| 83 | +- [Troubleshoot js_lang procedures and functions](js-lang-troubleshoot.md) |
0 commit comments