Levure application framework & hosted database

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

Moderators: Klaus, FourthWorld, heatherlaine, kevinmiller, robinmiller

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

Levure application framework & hosted database

Post by nicoloose »

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: 99
Joined: Mon Sep 16, 2013 3:35 pm

Re: Levure application framework & hosted database

Post by nicoloose »

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