Skip to content
alttchPublic

About

A timestamp object

Resources

Stars

1 star

Watchers

0 watching

Forks

Latest commit

 

History

42 Commits

Folders and files

Repository files navigation

Timestamp/monotonic objects

Features

  • serde Serialization/deserialization with serde

  • chrono conversion between chrono types, also required to parse/deserialize strings from human-readable times

  • sqlx-sqlite encoding/decoding for SQLite with sqlx

  • sqlx-postgres encoding/decoding for PostgreSQL with sqlx

  • sqlx compatibility shorthand enabling both SQLx backends

  • full enables chrono, serde and both SQLx backends

  • as-float-secs a legacy feature: the default Timestamp de/serialization and string parsing is to/from float seconds (including integers)

sqlx encoding/decoding

Timestamp

  • Sqlite: INTEGER (nanoseconds)

  • PostgreSQL: TIMESTAMPTZ/TIMESTAMP

Monotonic

  • Sqlite: INTEGER (nanoseconds)

  • PostgreSQL: BIGINT (nanoseconds)

About

A timestamp object

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages