insert
Last updated
Last updated
The insert
method in SchemaJS is a higher-level API that provides a convenient way to insert data into a database and table using the context provided by globalThis.SJS_CONTEXT
. It ensures that the correct database and table are referenced from the context, offering a more user-friendly and streamlined way of inserting data compared to the lower-level method. This method is designed to handle scenarios where the global context is already defined, making it easy to insert data without needing to explicitly specify the database or table every time.