Uploaded image for project: 'Railo'
  1. Railo
  2. RAILO-1935

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

    Details

    • Type: Feature Request
    • Status: Open (View Workflow)
    • Priority: 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

        Gliffy Diagrams

          Activity

          Hide
          micstriit 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
          micstriit 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
          micstriit Michael Offner added a comment -

          testcase attached

          Show
          micstriit Michael Offner added a comment - testcase attached
          Hide
          micstriit 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
          micstriit 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:
              micstriit Michael Offner
              Reporter:
              micstriit Michael Offner
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:

                Development