> For the complete documentation index, see [llms.txt](https://docs.schemajs.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.schemajs.com/reference-guides/schemajs-global/rawinsert.md).

# rawInsert

The `rawInsert` function in **SchemaJS** is a low-level, asynchronous method designed to insert data directly into a database and table without relying on the global context (`SJS_CONTEXT`). It provides flexibility for inserting data into any specified table by directly specifying the database and table names. This makes `rawInsert` ideal for use cases where the global context is not available or necessary, such as when performing batch operations, dynamic inserts, or when a more direct approach is preferred over the built-in [`insert`](/reference-guides/schemajs-global/insert.md) method.

```typescript
function rawInsert(dbName: string, tableName: string, data: any);
```
