JsonResponse
objects and typed parameters to streamline the process.
await
the call.
mode
parameter.
"create"
: Creates the table; fails if it already exists."overwrite"
: Drops the existing table (if any) and creates a new one."create_if_not_exists"
: Creates the table only if it does not already exist."create"
)."create"
).true
, no error is thrown if the table does not exist.WHERE
clause specifying which records to update (e.g. "id = 123"
).{ age: 30 }
).{ age: "age + 1" }
).WHERE
clause for filtering which records to delete.on
column are updated; otherwise, new rows are inserted.WHERE
clause string or an object representing key-value equals conditions.RoomClient
, it keeps your database interactions modular and maintainable.