Railo
  1. Railo
  2. RAILO-1935

add support for application.cfc->datasource{name,username,password}

    Details

    • Type: Feature Request Feature Request
    • Status: Open Open (View Workflow)
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: 4.1.0.002
    • Labels:
      None
    • Similar Issues:
      Show 10 results 

      Description

      add support for application.cfc->datasource

      {name,username,password}

      see also:
      https://issues.jboss.org/browse/RAILO-1931

        Activity

        Hide
        Michael Offner
        added a comment - - edited

        Example Datasource:

        this.datasources.dsFromApp=

        { class:'org.gjt.mm.mysql.Driver' ,connectionString:'jdbc:mysql://localhost:3306/test?characterEncoding=UTF-8&useUnicode=true' ,username:'root' ,password:"..." // optional settings ,default:true // default: false //,connectionLimit:100 // default:-1 ,timezone:'CET' }

        ;

        Example default Datasource:
        this.datasource=

        { class:'org.gjt.mm.mysql.Driver' ,connectionString:'jdbc:mysql://localhost:3306/test?characterEncoding=UTF-8&useUnicode=true' ,username:'root' ,password:"..." // optional settings ,default:true // default: false //,connectionLimit:100 // default:-1 ,timezone:'CET' }

        ;

        Example <cfapplication>:

        <cfapplication
        name="#hash( getCurrentTemplatePath() )& gettickcount()#"
        datasource="dsFromApp"
        datasources="#{dsFromApp:

        { class:'org.gjt.mm.mysql.Driver' ,connectionString:'jdbc:mysql://localhost:3306/test?characterEncoding=UTF-8&useUnicode=true' ,username:'root' ,password:"..." // optional settings ,default:true // default: false //,connectionLimit:100 // default:-1 ,timezone:'CET' }

        }#">

        Show
        Michael Offner
        added a comment - - edited Example Datasource: this.datasources.dsFromApp= { class:'org.gjt.mm.mysql.Driver' ,connectionString:'jdbc:mysql://localhost:3306/test?characterEncoding=UTF-8&useUnicode=true' ,username:'root' ,password:"..." // optional settings ,default:true // default: false //,connectionLimit:100 // default:-1 ,timezone:'CET' } ; Example default Datasource: this.datasource= { class:'org.gjt.mm.mysql.Driver' ,connectionString:'jdbc:mysql://localhost:3306/test?characterEncoding=UTF-8&useUnicode=true' ,username:'root' ,password:"..." // optional settings ,default:true // default: false //,connectionLimit:100 // default:-1 ,timezone:'CET' } ; Example <cfapplication>: <cfapplication name="#hash( getCurrentTemplatePath() )& gettickcount()#" datasource="dsFromApp" datasources="#{dsFromApp: { class:'org.gjt.mm.mysql.Driver' ,connectionString:'jdbc:mysql://localhost:3306/test?characterEncoding=UTF-8&useUnicode=true' ,username:'root' ,password:"..." // optional settings ,default:true // default: false //,connectionLimit:100 // default:-1 ,timezone:'CET' } }#">
        Hide
        Michael Offner
        added a comment -

        testcase attached

        Show
        Michael Offner
        added a comment - testcase attached
        Hide
        Michael Offner
        added a comment - - edited

        we should also support the defintion in a alternative way:
        this.datasources.dsFromApp={
        type:'MySQL'
        ,host:'localhost'
        ,port:3306
        ,database:'test'
        ,custom:

        { characterEncoding:'UTF-8' ,useUnicode:true }

        ,username:'root'
        ,password:"..."

        // optional settings
        ,default:true // default: false
        //,connectionLimit:100 // default:-1
        ,timezone:'CET'
        };

        Show
        Michael Offner
        added a comment - - edited we should also support the defintion in a alternative way: this.datasources.dsFromApp={ type:'MySQL' ,host:'localhost' ,port:3306 ,database:'test' ,custom: { characterEncoding:'UTF-8' ,useUnicode:true } ,username:'root' ,password:"..." // optional settings ,default:true // default: false //,connectionLimit:100 // default:-1 ,timezone:'CET' };

          People

          • Assignee:
            Michael Offner
            Reporter:
            Michael Offner
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated: