Skip to content

zhihu/norm

Folders and files

NameName
Last commit message
Last commit date

Latest commit

7d40e76 · Oct 23, 2023

History

44 Commits
Jul 13, 2021
Jul 13, 2021
May 17, 2023
Jul 16, 2021
May 17, 2023
Oct 23, 2023
Jul 13, 2021
Jul 13, 2021
Jul 13, 2021
Jul 13, 2021
Jul 13, 2021
Jul 13, 2021
Jul 13, 2021
Nov 24, 2021
May 17, 2023
Oct 23, 2023
Jul 13, 2021
May 17, 2023
May 17, 2023
May 17, 2023
Jan 30, 2023
Oct 23, 2023
May 17, 2023

Repository files navigation

norm

An ORM library support nGQL for Golang.

go report card Go MIT license Go.Dev reference

Overview

  • Build insert nGQL by struct / map (Support vertex, edge).
  • Parse Nebula execute result to struct / map.
  • Easy to use.
  • Easy mock for Unit Testing.

Roadmap

  1. Session pool. For details, please see dialector
  2. Support more types in insert/execute function.
    • Types: time.Time
  3. Support batch insert, query list.
  4. Chainable api. For detail please see chainable api

Maybe Support

  • Statistic Hooks. Insert/Query count and latency.
  • Fix fields Order when build insert nGQL. (now norm use map store keys, and in go range map is out-of-order.)

Need improve

  • Benchmark.
  • Unit Testing.
  • Documents.

Getting Started

Install:

go get github.com/zhihu/norm

use example: please go use example

Contributing guidelines

License

© Zhihu, 2021~time.Now

Released under the MIT License

copy and paste from gorm