Git Product home page Git Product logo

icm_goapi's Introduction

icm_goapi

icm_goapi

A repository containing go structs and helper functions for processing ABB ICM/CMP data from snowflake into a go pipeline. Meant to be used as a basis for other external libraries and go-based packages.

orm

The primary location for Go-based structs which are representations of ABB ICM entities. The orm library contains an ICMEntity interface which allows for smoother functionality in the encoding library. Primary ICM Entities (such as a Vendor) are represented by a struct of the same name (i.e. orm.Vendor). In cases where the primary entity is also flagged during the ICM process, the boolean flags are contained within a nested struct (i.e. orm.VendorFlags) in a field called Flags on the primary entity.

If it is necessary to create or construct new ICM Entities over time, it is important to understand that both the primary entitiy and the nested Flag entity satisfy the ICMEntity interface.

Encoding

An (amatuerish) attempt at an encoding lib for ICM entities into snowflake SELECT statements. In general, this comes in two flavors: nested and flat. Marshalling a orm entity into a nested query basically consists of constructing a Snowflake SELECT statement which contains an OBJECT_CONSTRUCT command in order to load the nested Flag entity. Marshalling an orm entity into a flat SELECT statement simply queries all known fields from the database and returns them in the order they are defined in the struct. Roughly equivalent to a SELECT * statement.

icm_goapi's People

Contributors

viking2012 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.