Connect an Existing App to ReadySet¶
Once you have a ReadySet instance up and running, connecting your application to ReadySet works exactly the same as connecting to your existing database.
This usually involves changing your database connection string, either via an ORM setting or an environment variable.
If you've followed the ReadySet quick start, your connection string will be:
If you've deployed the ReadySet binary, use the host, port, username and password you started the server with.
Change the DATABASE_URL
variable in your schema.prisma
file to point to ReadySet's connection string.
Alternatively, set the DATABASE_URL
environment variable to the ReadySet connection string.
Modify the Sequelize constructor, passing in ReadySet's connection string.
Modify the config/database.yml file, leaving the adapter the same and pointing the connection string at ReadySet.
Alternatively, set the DATABASE_URL
environment variable to the ReadySet connection string.
Change the database connection string in settings.py
.
Any tool that supports the MySQL or Postgres wire protocol works with ReadySet.
Change your database connection string to point at the ReadySet instance.