access_tracking.go raw
1 //go:build js && wasm
2
3 package wasmdb
4
5 // RecordEventAccess is a stub for WasmDB.
6 // Access tracking is not implemented for the WebAssembly backend as it's
7 // primarily used for client-side applications where storage management
8 // is handled differently.
9 func (w *W) RecordEventAccess(serial uint64, connectionID string) error {
10 // No-op for WasmDB
11 return nil
12 }
13
14 // GetEventAccessInfo is a stub for WasmDB.
15 func (w *W) GetEventAccessInfo(serial uint64) (lastAccess int64, accessCount uint32, err error) {
16 // No-op for WasmDB - return zeros
17 return 0, 0, nil
18 }
19
20 // GetLeastAccessedEvents is a stub for WasmDB.
21 func (w *W) GetLeastAccessedEvents(limit int, minAgeSec int64) (serials []uint64, err error) {
22 // No-op for WasmDB - return empty slice
23 return nil, nil
24 }
25