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

add the constructor NewNativeType #874

Merged
merged 1 commit into from
Mar 14, 2017
Merged

add the constructor NewNativeType #874

merged 1 commit into from
Mar 14, 2017

Conversation

vrischmann
Copy link
Contributor

In order to test an implementation of gocql.Unmarshaler or gocql.Marshaler I need to pass it a gocql.TypeInfo.

Until today I just did that indirectly by creating tables and querying cassandra directly, but it's taking a long time to spin up a Cassandra for my CI builds.

So I looked at a way to build the gocql.TypeInfo myself, and turns out the interface is not that complicated so I made my own type for it.

But, it's kind of a waste because I ended up duplicating this, and my TypeInfo was basically just this copied.

NativeType is the only type with fields not exposed so I can't use it directly, which is why I'm suggesting creating a constructor NewNativeType for it. Or we could expose all fields but that's more invasive work.

@Zariel Zariel merged commit ecc3fdb into apache:master Mar 14, 2017
@vrischmann vrischmann deleted the new-native-type branch March 15, 2017 10:01
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