Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: add CSVWithNames to supported formats #107

Merged
merged 1 commit into from
Mar 13, 2019
Merged

fix: add CSVWithNames to supported formats #107

merged 1 commit into from
Mar 13, 2019

Conversation

Phrlog
Copy link
Contributor

@Phrlog Phrlog commented Nov 26, 2018

@2ur1st
Copy link
Contributor

2ur1st commented Nov 26, 2018

You need to add some test cases for this feature
The ClickHouseDB\Tests\FormatQueryTest class is a good place for that

@Phrlog
Copy link
Contributor Author

Phrlog commented Nov 26, 2018

@2ur1st thanks for response!

Did I get it right, you need actual CH database to run unit tests with this library?

@2ur1st
Copy link
Contributor

2ur1st commented Nov 26, 2018

@Phrlog yes, the library contain a lot of tests and there are not only unit tests
you can use docker its simple for testing

@@ -12,8 +12,9 @@ class WriteToFile
const FORMAT_TabSeparated = 'TabSeparated';
const FORMAT_TabSeparatedWithNames = 'TabSeparatedWithNames';
const FORMAT_CSV = 'CSV';
const FORMAT_CSVWithNames = 'CSVWithNames';
Copy link
Contributor

Choose a reason for hiding this comment

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

You must use upper case for constants, I know you wrote code like another constants, but its legacy and its not correct

@isublimity isublimity merged commit 090261c into smi2:master Mar 13, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants