VirtualBox

Changeset 83389 in vbox for trunk


Ignore:
Timestamp:
Mar 24, 2020 4:57:46 PM (5 years ago)
Author:
vboxsync
Message:

TestManager/db: Added function for getting the interval expression for one DB tick.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/ValidationKit/testmanager/core/db.py

    r83382 r83389  
    103103    """
    104104    return dbTimestampToZuluDatetime(datetime.datetime.utcnow());
     105
     106def dbOneTickIntervalString():
     107    """
     108    Returns the interval string for one tick.
     109
     110    Mogrify the return value into the SQL:
     111        "... %s::INTERVAL ..."
     112    or
     113        "INTERVAL %s"
     114    The completed SQL will contain the necessary ticks.
     115    """
     116    return '1 microsecond';
    105117
    106118def dbTimestampMinusOneTick(oValue):
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette