Skip to content

fix: NewTableFromStruct pointer to time.Time#15

Merged
yevgenypats merged 1 commit intofeat/cqv2_wipfrom
fix-timestamp-pointer
Aug 25, 2022
Merged

fix: NewTableFromStruct pointer to time.Time#15
yevgenypats merged 1 commit intofeat/cqv2_wipfrom
fix-timestamp-pointer

Conversation

@hermanschaaf
Copy link
Copy Markdown
Contributor

@hermanschaaf hermanschaaf commented Aug 25, 2022

This:

  • fixes the test so that it makes assertions (previously it was only printing)
  • fixes the test that would have been failing after feat: Always generate path resolver #14 if it had been making assertions
  • fixes the case where a pointer to time.Time is given. I thought it was working before because I thought the test was making assertions, but it wasn't 😅

I spent a few minutes trying to make it work with typecasts like before, but couldn't figure out how to get the actual interface from the reflect value after calling Elem() to dereference the pointer. Switched to a comparison with PkgPath and Name instead to save some time, but maybe we can revisit this again later.

@yevgenypats yevgenypats merged commit 55d4536 into feat/cqv2_wip Aug 25, 2022
@yevgenypats yevgenypats deleted the fix-timestamp-pointer branch August 25, 2022 07:24
yevgenypats added a commit that referenced this pull request Aug 30, 2022
* feat: Remove connection spec

* fix SourceSpec

* working on destination plugin

* added bunch of tests

* remove limit from sdk

* Added more tests

* remove dead code

* fix some linters

* feat: Using json everywhere apart from yaml for the user

We are taking a similar approach to k8s to use json internally
for marshalling/unmarshalling and yaml only for using facing stuff.

yaml parsers are much more complex and also have tons of vulnerabilities
so we want to use json everywhere where there is a machine reading those configurations.

* more work around configuration

* tests working again

* Implement code generation helpers

* improvments to codegen

* fix: dont override nil values

* more fixes to base templates

* more codegen improvments

* feat: Support timestamp columns (#12)

* Always generate path resolver (#14)

* fix: NewTableFromStruct pointer to time.Time (#15)

* feat: Add WithDescriptionEnabled to NewTableFromStruct

I suggest not to use it as it is just duplicated bloat and
it is super slow

* Add table descriptions (#17)

* detect duplicate columns on start

* fixed golang-lint

* run gci

* more linting

Co-authored-by: Herman Schaaf <hermanschaaf@gmail.com>
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