summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--README.md5
1 files changed, 5 insertions, 0 deletions
diff --git a/README.md b/README.md
index de889f8..a8abf6d 100644
--- a/README.md
+++ b/README.md
@@ -451,6 +451,11 @@ Now when you bind a value of type `MyArray` the value returned by `bindField` wi
451 451
452Same for reading, when you select _into_ a `MyArray` row or field the value returned by `readField` will be used instead. 452Same for reading, when you select _into_ a `MyArray` row or field the value returned by `readField` will be used instead.
453 453
454_NOTE_: when you _do_ allocate in `bindField` or `readField` make sure to pass a `std.heap.ArenaAllocator`-based allocator.
455
456The binding or reading code does not keep tracking of allocations made in custom types so it can't free the allocated data itself; it's therefore required
457to use an arena to prevent memory leaks.
458
454# Comptime checks 459# Comptime checks
455 460
456Prepared statements contain _comptime_ metadata which is used to validate every call to `exec`, `one` and `all` _at compile time_. 461Prepared statements contain _comptime_ metadata which is used to validate every call to `exec`, `one` and `all` _at compile time_.