Giter Club home page Giter Club logo

godal's Introduction

godal

Go Report Card GoDoc

Generic Database Access Layer implementation in Golang.

Documentation

History

2019-12-08 - v0.2.3

  • Bug fixes.

2019-12-04 - v0.2.1

  • More tests.
  • Bug fixes & enhancements.
  • Update docs & dependency libs.

2019-11-25 - v0.2.0

  • New package dynamodb: provides a generic AWS DynamoDB implementation of godal.IGenericDao.
  • GenericDaoSql:
    • Fix nil-pointer bug when passing nil filter/sorting.
    • SqlExecute() and SqlQuery(): always use prepared statement (also fix a bug that int/float columns are returned as []byte)
  • GenericRowMapperSql:
    • Add GboFieldToColNameTranslator and ColNameToGboFieldTranslator: define rules to translate column names to field names and vice versa.
  • Breaking changes:
    • ColummNameTransformation renamed to NameTransformation
    • Constants ColNameTransIntact, ColNameTransUpperCase and ColNameTransLowerCase renamed to NameTransfIntact, NameTransfUpperCase and NameTransfLowerCase.
    • GenericRowMapperSql.ColNameTrans renamed to NameTransformation.
  • Update docs & dependency libs.
  • Removed deprecated functions.
  • Other fixes & enhancements.

2019-11-03 - v0.1.0

  • Breaking changes:
    • Move AbstractGenericDao.GdaoDelete(...) to sub-classes (GenericDaoMongo and GenericDaoSql)
    • IGenericDao: GdaoCreate, GdaoUpdate and GdaoSave return (0, GdaoErrorDuplicatedEntry) if written row violate data integrity (duplicated key or unique index)
  • Add transaction-supported functions to GenericDaoMongo and GenericDaoSql.
  • GenericDaoSql:
    • New method WrapTransaction(ctx context.Context, func(ctx context.Context, tx *sql.Tx) error) error
  • More tests
  • Update dependency libs
  • Other fixes & enhancements

2019-10-25 - v0.0.4

  • GenericBo: new function Checksum() []byte
  • GenericDaoMongo:
    • New method WrapTransaction(ctx context.Context, txFunc func(sctx mongo.SessionContext) error) error
    • Add tests
    • Fixes & Enhancements
  • GenericDaoSql:
    • Add tests
    • Fixes & Enhancements
  • Update dependency libs
  • Other fixes & enhancements

2019-09-14 - v0.0.3

  • Upgrade dependency libs.

2019-04-09 - v0.0.2

  • Migrate to Go modular design.
  • Generic database/sql DAO implementation: GenericDaoSql

2019-03-12 - v0.0.1

  • Generic business object:
    • Interface IGenericBo & implementation GenericBo
  • Generic data access object:
    • Interface IGenericDao & abstract implementation AbstractGenericDao
  • Generic MongoDB DAO implementation: GenericDaoMongo

License

MIT - see LICENSE.md.

godal's People

Contributors

btnguyen2k 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.