Skip to content

Commit

Permalink
Merge pull request #76 from k1LoW/fix-doc-path
Browse files Browse the repository at this point in the history
Fix `dataPath` to `docPath`
  • Loading branch information
k1LoW authored Feb 25, 2019
2 parents 65cc3c6 + 5b8f4db commit 79131b9
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -97,13 +97,13 @@ YAML format is follows
``` yaml
---
dsn: my://root:mypass@localhost:33306/testdb
dataPath: sample/mysql
docPath: sample/mysql
```

``` yaml
---
dsn: my://${MYSQL_USER}:${MYSQL_PASSWORD}@localhost:33306/${MYSQL_DATABASE}
dataPath: sample/mysql
docPath: sample/mysql
```

### 3. Envirionment
Expand Down
2 changes: 1 addition & 1 deletion config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ const configDefaultPath = ".tbls.yml"
// Config is tbls config
type Config struct {
DSN string `yaml:"dsn"`
DocPath string `yaml:"dataPath"`
DocPath string `yaml:"docPath"`
Lint Lint `yaml:"lint"`
Relations []AdditionalRelation `yaml:"relations"`
Comments []AdditionalComment `yaml:"comments"`
Expand Down
2 changes: 1 addition & 1 deletion testdata/env_testdb_config.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
---
dsn: pg://root:${TBLS_TEST_PG_PASS}@localhost:55432/testdb?sslmode=disable
dataPath: ${TBLS_TEST_PG_DOC_PATH}
docPath: ${TBLS_TEST_PG_DOC_PATH}
2 changes: 1 addition & 1 deletion testdata/mysql_testdb_config.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
dsn: my://root:mypass@localhost:33306/testdb
dataPath: sample/mysql
docPath: sample/mysql
relations:
-
table: logs
Expand Down

0 comments on commit 79131b9

Please sign in to comment.