Levure application framework & hosted database

Anything beyond the basics in using the LiveCode language. Share your handlers, functions and magic here.

Moderators: heatherlaine, Klaus, FourthWorld, robinmiller, kevinmiller

Post Reply
nicoloose
Posts: 66
Joined: Mon Sep 16, 2013 3:35 pm

Levure application framework & hosted database

Post by nicoloose » Wed Apr 11, 2018 1:20 pm

Hi,

I have created an app for my business which needs to be accessed by multiple people in multiple locations. I used mysql for the last app developed using glxapp_framework but have upgraded to levure and am using an sqlite DB for this project. Does anyone have an example of how the connections.yml file would look if I were to host the database for both sqlite and mysql?

Thanks
N

nicoloose
Posts: 66
Joined: Mon Sep 16, 2013 3:35 pm

Re: Levure application framework & hosted database

Post by nicoloose » Fri Apr 13, 2018 5:18 pm

Sorted!

Code: Select all

default connection: server
connections:
  server:
    adaptor: mysql
    database name: dbName
    username: dbUserName
    password: dbPassword
    host: IP Address
  local:
    adaptor: sqlite
    quote identifiers: false
    type:
    file: ./database/imprus.sqlite
    

Post Reply

Return to “Talking LiveCode”