https://github.com/datum-cloud/entx
ent eXtensions
https://github.com/datum-cloud/entx
Last synced: 11 months ago
JSON representation
ent eXtensions
- Host: GitHub
- URL: https://github.com/datum-cloud/entx
- Owner: datum-cloud
- License: apache-2.0
- Created: 2024-08-30T21:28:04.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-11-26T17:57:22.000Z (over 1 year ago)
- Last Synced: 2024-12-01T05:52:43.566Z (over 1 year ago)
- Language: Go
- Size: 105 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 11
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[](https://buildkite.com/datum/entx) [](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
```