Skip to content

Conversation

@zeroshade
Copy link
Member

Creates a framework for generating standalone packaged ADBC drivers as .so shared libraries which can be easily distributed out of Go's implementation.

@zeroshade zeroshade requested a review from lidavidm January 12, 2023 21:59
Copy link
Member

@lidavidm lidavidm left a comment

Choose a reason for hiding this comment

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

LGTM, just some nits about unprefixed exported functions.

I guess the next follow up would be to set up CI to run this driver against the C++ test suite and see what happens. For that, I think it would be good if there were some standalone Flight SQL server example we could use...probably the Go one is easiest just in terms of building it.

@zeroshade zeroshade changed the title feat(flightsql/driver): Build C shared lib for flightsql adbc driver feat(go/flightsql/driver): Build C shared lib for flightsql adbc driver Jan 13, 2023
return out, nil
}

func formatCSource(in []byte) ([]byte, error) {
Copy link
Member

Choose a reason for hiding this comment

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

pre-commit would just take care of this for you, though I guess it requires a little setup.

Copy link
Member Author

Choose a reason for hiding this comment

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

how do i get pre-commit to actually fix the things instead of just failing the check? lol

Copy link
Member

Choose a reason for hiding this comment

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

If you have it locally, pre-commit run [--all-files] will fix up the files for you, then you can stage and commit

@lidavidm lidavidm changed the title feat(go/flightsql/driver): Build C shared lib for flightsql adbc driver feat(go/adbc/driver/flightsql): Build C shared lib for flightsql adbc driver Jan 17, 2023
Copy link
Member

@lidavidm lidavidm left a comment

Choose a reason for hiding this comment

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

CI failure looks unrelated.

@zeroshade zeroshade merged commit a2d4c9b into apache:main Jan 17, 2023
@zeroshade zeroshade deleted the flightsql-dynlib branch January 17, 2023 17:18
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