interface SedentaryOptions {
    autoSync?: boolean;
    log?: ((message: string) => void) | null;
    sync?: boolean;

Specifies the options for the Sedentary object.


  • default: true

If false, the sedentary.connect method does not perform the sync process by default. This is usefull for distributed environments where we probably don’t want to run the sync process at each sedentary.connect call, but we want to run it only once.


The Function which Sedentary will use to log its messages. If null, logging is disabled.



  • default: true

If false, Sedentary will not sync the database, it simply checks if the configured Models are compliant to the tables at database level.