sqlite: Can I mock the current time `now()` for testing? -


i build test suite program runs lot of sql statements now() against sqlite data base. mock sqlite clock --- test behaviour designed take several days within 1 second. not want touch system clock.

is possible sqlite?

sqlite's built-in functions can redefined sqlite3_create_function.

[edit yaakov belch --- additional information:]


Comments

Popular posts from this blog

javascript - IndexedDB error: Uncaught DataCloneError: Failed to execute 'put' on 'IDBObjectStore': An object could not be cloned -

amazon web services - When using Cognito credentials with AWS in a browser (javascript), keep getting "missing credentials" error -

c# - How to set the datatextfield value instead of the value on a drop down list? -