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

[sqlite3def] Add blob type support #306

Merged
merged 2 commits into from
Nov 16, 2022

Conversation

knaka
Copy link
Contributor

@knaka knaka commented Nov 15, 2022

Added blob type support // Datatypes In SQLite

Some virtual table features (such as FTS) create blob columns internally. In that case users cannot avoid using blob types.

@knaka knaka marked this pull request as ready for review November 15, 2022 15:47
@@ -143,6 +143,20 @@ func TestSQLite3defConfigIncludesSkipTables(t *testing.T) {
assertEquals(t, apply, nothingModified)
}

func TestSQLite3defBlobType(t *testing.T) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

Can you test this in TestApply? All the tests other than TestApply should only test CLI features, and SQL manipulation should be tested in cmd/sqlite3def/tests.yml because it's faster and less redundant.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I was not aware of the YAML file. This project is very informative in the way of Golang testing...

I have fixed it.

@knaka knaka requested a review from k0kubun November 16, 2022 10:16
Copy link
Collaborator

@k0kubun k0kubun left a comment

Choose a reason for hiding this comment

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

Thank you!

@k0kubun k0kubun merged commit 9d37ffc into sqldef:master Nov 16, 2022
@knaka knaka deleted the feature/sqlite3def-blob_type branch November 16, 2022 23:20
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.

2 participants