Skip to content

Abstract

flowtask.components.NetworkNinja.models.abstract

AbstractPayload

Bases: BaseModel

Abstract Payload Model.

Common fields implemented by any Object in NetworkNinja Payloads.

ensure_timezone

ensure_timezone(dt)

Ensure a datetime has timezone information.

insert_record async

insert_record(conn, **kwargs)

Insert Record to Database.

on_sync async

on_sync(conn, upsert=True)

Sync Current Object with the Database.

save async

save(conn, pk=None, **kwargs)

Save the Object to the Database.

sync async

sync(**kwargs)

Sync the Object with the Database

update_many async

update_many(objects, primary_keys=None, **kwargs)

Upsert Several Records in Database.

upsert_record async

upsert_record(**kwargs)

Upsert Record to Database.