GithubHelp home page GithubHelp logo

altipla-consulting / arrays Goto Github PK

View Code? Open in Web Editor NEW
0.0 10.0 0.0 11 KB

Models for integer and string arrays in MySQL.

Home Page: https://github.com/altipla-consulting/arrays

License: MIT License

Makefile 3.66% Go 96.34%
mysql database

arrays's Introduction

arrays

DEPRECATED: Use https://github.com/altipla-consulting/libs instead.

GoDoc

Models for integer and string arrays in MySQL.

Install

go get github.com/altipla-consulting/arrays

This library has no external dependencies outside the Go standard library.

Usage

You can use the types of this package in your models structs when working with database/sql, upper.io/db.v3 or github.com/altipla-consulting/database:

type MyModel struct {
  ID    int64             `db:"id,omitempty"`
  Foo   arrays.Integers32 `db:"foo"`
  Bar   arrays.Integers64 `db:"bar"`
  Codes arrays.Strings    `db:"codes"`
}

Contributing

You can make pull requests or create issues in GitHub. Any code you send should be formatted using gofmt.

Running tests

Start the test database:

docker-compose up -d database

Install test libs:

go get github.com/stretchr/testify
go get upper.io/db.v3

Run the tests:

go test

Shutdown the database when finished testing:

docker-compose stop database

License

MIT License

arrays's People

Contributors

ernestoalejo avatar albertomoreno avatar

Watchers

James Cloos avatar  avatar Jarh avatar  avatar Juan Pedro Ramos Gómez avatar  avatar David O. avatar Alberto avatar Curro Molina avatar  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.