-
Notifications
You must be signed in to change notification settings - Fork 43
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
Provide schema files for SQL databases #26
Comments
@jrullmann thanks for investigating these! Yes, it's a must and we could probably integrate it with js-data schema. As you could noticed it's more a prototype here to see how it will go. |
BTW, do you find the unopinionated database engine useful? What if it will take care of everything, will use only one database, which will be installed and managed under the hood? The advantage of the current approach is that in the feature we could hook in the app's tables, for example, to see details about users which sent the report or about data which failed the request. While using its engine, make it simpler to use. We could offer more sugar out of the box, like GraphQL API. To make it more performant using something like Druid, which is very efficient for logging. |
I like the ability to choose my own database because ultimately I'll have to operate that database. You can't put concerns like backups and high availability under the hood. On the other hand, I'd rather have fewer choices that are well supported. After hacking together the schema files I ran into a version incompatibility issue between js-data-sql and knex. Since js-data-sql swallows errors it took some deep debugging to find the problem. I'd definately take fewer choices that are better supported. Assuming they fit my operational experience (Postgres comes to mind 😀) |
@jrullmann, yes, the fact that it is not actively maintained, and that the current implementation is very limited worries me as well. As Sticking to Postgres would be a good option, moreover there's awesome Also I'm considering Elasticsearch. The advantage is that it can be deployed locally and as a service too. Also its Kibana dashboard is pretty awesome. @ccorcos suggested it. |
@zalmoxisus I'm not actually suggesting it -- its just the solution we currently have at Affirm, although we're planning on moving toward Graphana and InfluxDb... |
OK, so the current plan is to drop |
@jrullmann I removed |
I'm trying to use remotedev-server with Postgres but I need the report table to be defined in the database before remotedev-server can insert any reports. I could look at the source code to hack it up, but this seems like something remotedev-server should provide if it expects to be usable with SQL databases. Especially if there are any schema changes in the future, which I imagine there could be 😀
Looks like js-data-sql is using Knex under the covers, which supports database agnostic schema files: http://www.dancorman.com/knex-your-sql-best-friend/
The text was updated successfully, but these errors were encountered: