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

enable geopoly #1255

Open
jtarchie opened this issue Jul 4, 2024 · 7 comments
Open

enable geopoly #1255

jtarchie opened this issue Jul 4, 2024 · 7 comments

Comments

@jtarchie
Copy link

jtarchie commented Jul 4, 2024

Sqlite in standard amalgamation there is geopoly. It requires the DSQLITE_ENABLE_GEOPOLY=1 compile time option. Would you accept a PR for this?

@rittneje
Copy link
Collaborator

rittneje commented Jul 4, 2024

Seems reasonable as an opt-in via a sqlite_geopoly build tag.

@jtarchie
Copy link
Author

jtarchie commented Jul 9, 2024

Is that an approval or a recommendation?

@andyfusniak
Copy link

Why not just set the flags yourself in your build?

CGO_CFLAGS="-DSQLITE_ENABLE_GEOPOLY" go build main.go

@jtarchie
Copy link
Author

Just following the pattern of mattn go build flags.

@mattn
Copy link
Owner

mattn commented Oct 27, 2024

Activation by tag of a feature can add useful Go functions for that feature. For example, some tags not only add “-D” but also provide a useful interface or functions. If you want CGO_CFLAGS, I won't reject it, but it won't provide that useful functions.

@mattn
Copy link
Owner

mattn commented Oct 27, 2024

There is currently no geo-related interface in go-sqlite3, but it is possible that one may be added in the future.

@andyfusniak
Copy link

As some tags only add "-D" wouldn't it be more consistent to add the tags covering all remaining SQLite features (even if they currently don't yet support a richer abstraction, as some do)?

Currently the only way to get Geopoly or Sessions enabled is to pass the environment variables down through the build?

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

No branches or pull requests

4 participants