GithubHelp home page GithubHelp logo

other db's ? about aqueduct HOT 21 OPEN

stablekernel avatar stablekernel commented on July 19, 2024 4
other db's ?

from aqueduct.

Comments (21)

MoacirSchmidt avatar MoacirSchmidt commented on July 19, 2024 1

You were completely right, joeconwaystk. I have just override AuthServerDelegate for my needs and it was pretty easy! You have done a great job! Thank you very much!

from aqueduct.

BNSby avatar BNSby commented on July 19, 2024 1

You were completely right, joeconwaystk. I have just override AuthServerDelegate for my needs and it was pretty easy! You have done a great job! Thank you very much!

@MoacirSchmidt , could you share a solution for MySQL.
The problem is that I do not have the proper experience and deep knowledge in DART

from aqueduct.

Reductions avatar Reductions commented on July 19, 2024 1

@maurobotta No. Except if someone decides to make a pull request with it.

from aqueduct.

Reductions avatar Reductions commented on July 19, 2024 1

@maurobotta The problem is that there are 0 teat in this pull request + there are a few existing tests that fail.

from aqueduct.

joeconwaystk avatar joeconwaystk commented on July 19, 2024

To add support for another database, PersistentStore must be implemented. MySQL would likely be relatively straightforward, as it would be really similar to the Postgres implementation. There are a few places where things got tangled - specifically with DB migration and tests - where we would have to make some changes. The long term goal is to support other DBs as packages outside of Aqueduct.

from aqueduct.

joeblew99 avatar joeblew99 commented on July 19, 2024

@joeconwaystk
Sounds like the proper way to do it might be to introduce an actual dialects class, so that the PeristentStore and the Migration can both use them ?
I remember Hibernate and NHibernate had dialects as first class objects.

its a long list, since Hibernate has been around for ever: https://docs.jboss.org/hibernate/orm/3.5/api/org/hibernate/dialect/package-summary.html

from aqueduct.

joeconwaystk avatar joeconwaystk commented on July 19, 2024

Not having a lot of experience with Hibernate, it looks like dialects are doing translations a lot closer to the syntax, whereas the goal for persistent store is to do those translations by behavior. Not saying that is going to work long-term, but that is the goal.

from aqueduct.

joeblew99 avatar joeblew99 commented on July 19, 2024

i used NHibernate for years.
https://github.com/nhibernate/nhibernate-core/tree/master/src/NHibernate/Dialect

If you even want a source of already worked out dialects, that i think might be the best source.
Just saying..
Shall we leave this open ?

from aqueduct.

mnordine avatar mnordine commented on July 19, 2024

Aqueduct seems really interesting, and I'd very much consider using it for our stack, but we use MySQL, so this is preventing us.

from aqueduct.

joeconwaystk avatar joeconwaystk commented on July 19, 2024

You can use any of the Dart MySQL drivers with Aqueduct, you just can't use the ORM features like Query and ManagedObject. Same goes for MongoDB or any other database.

from aqueduct.

joeconwaystk avatar joeconwaystk commented on July 19, 2024

This isn't accurate. The types AuthServer, AuthController, AuthRedirectController, AuthToken, AuthClient, Authorizer and Authorization have no dependency or even relationship with PostgreSQL or the ORM.

The abstract interface AuthDelegate is overridden for storage/retrieval for auth-related tasks. There is one provided implementation that uses the ORM (and therefore PostgreSQL). You can provide your own implementation for that one type, and still use all of the classes above without any changes.

from aqueduct.

MoacirSchmidt avatar MoacirSchmidt commented on July 19, 2024

I would really like to extend the AuthDelegate interface (or another ones) to use MySQL. Could you please guide me to some documentation or source code to achieve that?

from aqueduct.

joeconwaystk avatar joeconwaystk commented on July 19, 2024

Override this class in the docs, and pass instance of it to your AuthServer constructor:

https://pub.dartlang.org/documentation/aqueduct/latest/aqueduct/AuthServerDelegate-class.html

from aqueduct.

MoacirSchmidt avatar MoacirSchmidt commented on July 19, 2024

And What about the Google and facebook integrated login. Is aqueduct ready for that?

from aqueduct.

joeconwaystk avatar joeconwaystk commented on July 19, 2024

Yes and no. There won't be any full integrations for a particular identity provider. You can attach data to an Authorization object or request that comes from another identity provider, and you can use client packages on pub for a particular identity provider to get that data. I don't think the framework should set a standard on how you integrate with those types of identity providers.

from aqueduct.

MoacirSchmidt avatar MoacirSchmidt commented on July 19, 2024

I overrided AuthServerDelegate to support Microsoft SQL Server databases. It is working pretty well!

Unfortunately I was unable to solve a little issue: Is there a way for me to pass a parameter to getResourceOwner in order to identify the user throughout several different applications (but same database)?

from aqueduct.

yusrenaltair avatar yusrenaltair commented on July 19, 2024

I overrided AuthServerDelegate to support Microsoft SQL Server databases. It is working pretty well!

Would you like to share with us?
I'm using MSSQL Server as well. Thanks

from aqueduct.

maurobotta avatar maurobotta commented on July 19, 2024

I overrided AuthServerDelegate to support Microsoft SQL Server databases. It is working pretty well!

Would you like to share with us?
I'm using MSSQL Server as well. Thanks

+1

from aqueduct.

thapp-com-br avatar thapp-com-br commented on July 19, 2024

I overrided AuthServerDelegate to support Microsoft SQL Server databases. It is working pretty well!

Would you like to share with us?
I'm using MSSQL Server as well. Thanks

+1

+1

from aqueduct.

maurobotta avatar maurobotta commented on July 19, 2024

New 4.0 version will support mysql ?

from aqueduct.

maurobotta avatar maurobotta commented on July 19, 2024

@Reductions

This
#880

from aqueduct.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.