Thanks to visit codestin.com
Credit goes to github.com

Skip to content
This repository was archived by the owner on Aug 18, 2020. It is now read-only.

Conversation

@dadleyy
Copy link
Owner

@dadleyy dadleyy commented Mar 16, 2018

Notable changes

commit/diff reason
f3c65d0 adding support for time.Time fields
351439b refactoring generated Select methods to include record name
eb6a8d0 example app changes
5acca17 remove third return from update interfaces
f406cd3 making log writes more ubiquitous
🎩 @dadleyy
📎
🌲 example-cleanup

import "fmt"
import "github.com/dadleyy/marlow/examples/library/models"

func Browse(store *models.Stores, args []string) error {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

exported function Browse should have comment or be unexported


import "github.com/dadleyy/marlow/examples/library/models"

type Command func(*models.Stores, []string) error

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

exported type Command should have comment or be unexported

Imports importModelList `json:"imports"`
}

func Import(stores *models.Stores, args []string) error {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

exported function Import should have comment or be unexported


// marlow:ignore

type Stores struct {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

exported type Stores should have comment or be unexported

}
}

func (db *DatabaseConnections) Close() error {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

exported method DatabaseConnections.Close should have comment or be unexported

return nil
}

func (db *DatabaseConnections) Stores(logger io.Writer) *Stores {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

exported method DatabaseConnections.Stores should have comment or be unexported

sqlite *sql.DB
}

func (db *DatabaseConnections) Initialize() error {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

exported method DatabaseConnections.Initialize should have comment or be unexported

psqlConnectionString = "user=%s dbname=%s port=%s sslmode=disable password=%s"
)

type DatabaseConnections struct {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

exported type DatabaseConnections should have comment or be unexported

import "io"
import "fmt"
import "database/sql"
import _ "github.com/lib/pq"

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

a blank import should be only in a main or test package, or have a comment justifying it


// marlow:ignore

type DatabaseConfig struct {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

exported type DatabaseConfig should have comment or be unexported

@dadleyy dadleyy changed the title Example cleanup support for time.Time, refactoring selection api method names + example app updates Mar 16, 2018
@dadleyy dadleyy merged commit 01e292d into master Mar 16, 2018
@dadleyy dadleyy deleted the example-cleanup branch March 16, 2018 18:19
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants