package
1.0.0-beta.186
Repository: https://github.com/openmeterio/openmeter.git
Documentation: pkg.go.dev
# Packages
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
# Functions
Only use for direct interacton with the Ent driver implementation.
No description provided by the author
JSONBIn returns a function that filters the given JSONB field by the given key and value Caveats: - PostgreSQL only - The field must be a JSONB field - The value must be a string (no support for other types, ->> converts all values to string) - This might not work if there's a join involved in the query, so add unit tests.
No description provided by the author
No description provided by the author
TransactingRepo is a helper that can be used inside repository methods.
No description provided by the author
# Structs
CustomerAddressMixin adds address fields to a customer, used by billing to snapshot addresses for invoices.
IDMixin adds the ID field to the schema.
KeyMixin adds the key field to the schema.
NamespaceMixin can be used for namespaced entities.
NamespaceMixin can be used for namespaced entities.
No description provided by the author
ResourceMixin adds common fields.
TimeMixin adds the created_at and updated_at fields to the schema.
No description provided by the author
ULID implements a valuer (and Scanner) that can serialize string ULIDs into postgres instead of the binary representation, as postgres interprets those as UTF-8 strings.
UniqueResourceMixin adds common fields.
# Interfaces
No description provided by the author
No description provided by the author
Able to use an existing transaction.
# Type aliases
Able to start a new transaction.