• Home
  • Categories
  • Recent
  • Popular
  • Top
  • Tags
  • Users
  • Groups
  • Documentation
    • Home
    • Read API
    • Write API
    • Plugin Development
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
v3.5.2 Latest
Buy Hosting

Adding MySQL to NodeBB

Scheduled Pinned Locked Moved NodeBB Development
5 Posts 3 Posters 3.5k Views
    • 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.
  • X Offline
    X Offline
    xaoseric
    wrote on last edited by
    #1

    I did some looking around on the npm packages site (always a scary thought), found a couple MySQL packages that provide orm style interaction. Below are the packages I am thinking we could use to integrate mysql.

    http://bookshelfjs.org - Bookshelf would provide the orm: Models
    http://knexjs.org - sql builder
    https://www.npmjs.org/package/mysql - the MySQL package itself

    Does anyone know of better packages? Using Knex, and Bookshelf looks like we could do object oriented sql interaction.

    1 Reply Last reply
    0
  • X Offline
    X Offline
    xaoseric
    wrote on last edited by xaoseric
    #2

    In terms of Scaling, with MySQL, we could allow MySQL clusters to be used :).

    Edit: I have commented the necessary files that should get us started on adding MySQL. I have also submitted a pull request. Knex, and Bookshelf are being used as they provide ORM interfaces to interact with SQL based databases.

    1 Reply Last reply
    0
  • julianJ Offline
    julianJ Offline
    julian GNU/Linux
    wrote on last edited by
    #3

    I noticed you have a MySQL integration PR open with the main repo right now -- is it actually usable? 😅

    X 1 Reply Last reply
    0
  • X Offline
    X Offline
    xaoseric
    replied to julian on last edited by xaoseric
    #4

    @julian said:

    I noticed you have a MySQL integration PR open with the main repo right now -- is it actually usable? 😅

    It will be :), doesn't break anything as of right now 😉. First step to geting it integraded is adding the module for it.

    Edit: In the long run, it will allow people more comfertable with mysql to use NodeBB 😃.

    1 Reply Last reply
    0
  • B Offline
    B Offline
    bentael Plugin & Theme Dev
    wrote on last edited by
    #5

    technically, it does break if someone tries to use it

    1 Reply Last reply
    0

Copyright © 2023 NodeBB | Contributors
  • Login

  • Don't have an account? Register

  • Login or register to search.
Powered by NodeBB Contributors
  • First post
    Last post
0
  • Home
  • Categories
  • Recent
  • Popular
  • Top
  • Tags
  • Users
  • Groups
  • Documentation
    • Home
    • Read API
    • Write API
    • Plugin Development