No More Posting New Topics!

If you have a question or an issue, please start a thread in our Github Discussions Forum.
This forum is closed for new threads/ topics.

Navigation

    Quasar Framework

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search

    Access some data in MySQL database

    Help
    3
    5
    1691
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • fcdionisio
      fcdionisio last edited by fcdionisio

      Is it possible to use the NPM MySQL/MySQL packages on this Quasar Framework…? i try to install NPM just like what i did in Node.Js… i dont know what else i can do to allow it correctly… i need to read and write some data in the existing system (uses MySQL). I hope someone can help me. Thanks

      1 Reply Last reply Reply Quote 0
      • P
        pavarine last edited by

        You can use packages with Quasar as much as like you do with Node.js in general.

        First, install the packages that you want to use (locally or globally, your choice):

        npm install --save mypackage

        Then, in the <script> section of your components, import the packages that you want to use:

        <script>
        import mypackage from ‘mypackage’
        …
        mypackage.CallFunctionFromMyPackage(…)
        </script>

        Hope this helps

        fcdionisio 1 Reply Last reply Reply Quote 0
        • Hawkeye64
          Hawkeye64 last edited by

          Quasar is for front-end. Database packages would be for a back-end. You need to build out a back-end to consume MySQL and communicate to/from front-end to back-end.

          fcdionisio 1 Reply Last reply Reply Quote 0
          • fcdionisio
            fcdionisio @pavarine last edited by

            @pavarine thank you so much i will try this

            1 Reply Last reply Reply Quote 0
            • fcdionisio
              fcdionisio @Hawkeye64 last edited by

              @hawkeye64 thank you so much

              1 Reply Last reply Reply Quote 0
              • First post
                Last post