matoszz / entx

A helper library for working with / using ent

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Build status Quality Gate Status

entx

A helper package for working with ent, which includes the following high-level utilities:

  • Mixin used for assigning a different ID type than the one generated by ent (we use ULIDs)
  • 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:

scalar Upload

About

A helper library for working with / using ent

License:Apache License 2.0


Languages

Language:Go 90.4%Language:Smarty 9.6%