-
-
Notifications
You must be signed in to change notification settings - Fork 0
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
Relational database support #30
Comments
Would this integration also have a mechanism for migrations? |
Current preview implementation for AWS available at: nitrictech/nitric#613 @chimon2000 This does include a migration mechanism at the moment. This comes in two flavors.
import { sql } from "@nitric/sdk";
const myDatabase = sql("my-db", {
// Use a migrations folder relative to the nitric.yaml
migrations: "file:///migrations/"
});
import { sql } from "@nitric/sdk";
const myDatabase = sql("my-db", {
// Use a dockerfile relative to the nitric.yaml
migrations: "dockerfile:///migrations.dockerfile"
}); |
In the case of Option 1, how would Nitric use the migrations folder? |
@chimon2000 apologies for the late reply. The migrations folder uses https://github.com/golang-migrate/migrate by default in our preview release, we'll build a default migration image in the case where a migrations directory is given using that tool. |
Support deployment of Relational SQL databases in Nitric apps. Initial support will focus on Postgres databases.
The text was updated successfully, but these errors were encountered: