An open API service indexing awesome lists of open source software.

https://github.com/datum-cloud/entx

ent eXtensions
https://github.com/datum-cloud/entx

Last synced: 11 months ago
JSON representation

ent eXtensions

Awesome Lists containing this project

README

          

[![Build status](https://badge.buildkite.com/00e41a2457573be5d6fa55c665c8c529c91844fd2da5357d32.svg)](https://buildkite.com/datum/entx) [![Quality Gate Status](https://sonarcloud.io/api/project_badges/measure?project=datumforge_entx&metric=alert_status)](https://sonarcloud.io/summary/new_code?id=datumforge_entx)

# entx

A helper package for working with [ent](https://entgo.io/), which includes the following high-level utilities:

- [Mixin](https://entgo.io/docs/schema-mixin) used for assigning a different ID type than the one generated by `ent` (we use ULIDs)
- [Mixin](https://entgo.io/docs/schema-mixin) used for assigning some default columns (`created_at`, `created_by`, etc. - check out the `mixin` directory for more details)
- A vanilla, drop-in, setup for using `ent` with our standard tool chains `gqlgen`, `gqlgenc`, and some other helpers
- Soft-delete extension with cascade delete functionality added in
- Multi-driver support for various databases
- SQLite connection interface management

## Usage

When using the generated `graphql` schemas, you must have the `Upload` scaler defined, which are used for the file upload resolvers:

```graphql
scalar Upload
```