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

Support for libsql and Turso #1038

Open
zachzafar opened this issue Feb 15, 2024 · 1 comment · May be fixed by #1042
Open

Support for libsql and Turso #1038

zachzafar opened this issue Feb 15, 2024 · 1 comment · May be fixed by #1042

Comments

@zachzafar
Copy link

It would be nice to have drivers for Turso and libsql

Turso is an edge-hosted, distributed database that's based on libSQL , an open-source and open-contribution fork of SQLite. Connecting to a local instance is different from connecting to a remote instance so it may be the case that you need separate drivers to support this, documentaion here

@avezina-ubik avezina-ubik linked a pull request Feb 28, 2024 that will close this issue
@avezina-ubik
Copy link

Since I really don't know how long it's gonna take before PR #1042 will be merged, I made a Dockerfile so we can start using migrate with Turso sooner:

FROM ubuntu:22.04

RUN apt update && apt install -y build-essential git curl


RUN curl -O https://dl.google.com/go/go1.22.0.linux-amd64.tar.gz
RUN tar -xvzf go1.22.0.linux-amd64.tar.gz -C /usr/local
ENV GOROOT=/usr/local/go
ENV GOPATH=$HOME/go
ENV PATH=$GOPATH/bin:$GOROOT/bin:$PATH

RUN git clone https://github.com/avezina-ubik/migrate.git
RUN cd migrate/cmd/migrate && CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -a -o ../../cli/build/migrate -ldflags='-extldflags "-static"' -tags 'postgres mysql redshift cassandra spanner cockroachdb yugabytedb clickhouse mongodb sqlserver firebird neo4j pgx pgx5 rqlite libsql file go_bindata github github_ee bitbucket aws_s3 google_cloud_storage godoc_vfs gitlab' .
RUN cp migrate/cli/build/migrate /usr/local/bin/migrate

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 a pull request may close this issue.

2 participants