View Source AshPostgres.TimestamptzUsec (ash_postgres v2.4.5)
Implements the PostgresSQL timestamptz (aka timestamp with time zone
) type with nanosecond precision.
attribute :timestamp, AshPostgres.TimestamptzUsec
timestamps type: AshPostgres.TimestamptzUsec
Alternatively, you can set up a shortname:
# config.exs
config :ash, :custom_types, timestamptz_usec: AshPostgres.TimestamptzUsec
After saving, you will need to run mix compile ash --force
.
attribute :timestamp, :timestamptz_usec
timestamps type: :timestamptz_usec
Please see AshPostgres.Timestamptz
for details about the usecase for this type.