[FARM SERVER]
* NEW: Take the database connection properties from the configuration file. git-svn-id: svn://localhost/gambas/trunk@6583 867c0c6c-44f3-4631-809d-bfa615b0a4ec
This commit is contained in:
parent
44eb5d54a3
commit
46835002c7
5 changed files with 10 additions and 7 deletions
|
@ -97,7 +97,9 @@ Private Sub OpenDatabase()
|
|||
If $hConn Then Return
|
||||
|
||||
$hConn = New Connection
|
||||
$hConn.Type = "postgresql"
|
||||
$hConn.Type = Settings["/Database/Type"]
|
||||
$hConn.User = Settings["/Database/User"]
|
||||
$hConn.Password = Settings["/Database/Password"]
|
||||
$hConn.Name = "gambas3_farm"
|
||||
$hConn.Open
|
||||
DB.Current = $hConn
|
||||
|
@ -109,7 +111,7 @@ Private Sub InitDatabase()
|
|||
Dim hConn As New Connection
|
||||
Dim hTable As Table
|
||||
|
||||
hConn.Type = "postgresql"
|
||||
hConn.Type = Settings["/Database/Type"]
|
||||
hConn.Open
|
||||
Try hConn.Databases.Add("gambas3_farm")
|
||||
hConn.Close
|
||||
|
|
Binary file not shown.
Before Width: | Height: | Size: 4.2 KiB After Width: | Height: | Size: 3.4 KiB |
|
@ -3,7 +3,8 @@
|
|||
Title=PeriodicTimer
|
||||
Startup=FMain
|
||||
Icon=lcdlabel.png
|
||||
Version=3.6.0
|
||||
Version=3.6.90
|
||||
VersionFile=1
|
||||
Component=gb.image
|
||||
Component=gb.gui
|
||||
Component=gb.form
|
||||
|
|
|
@ -2,7 +2,7 @@ FMain
|
|||
PeriodicTimer
|
||||
0
|
||||
0
|
||||
3.6.0
|
||||
3.6.90
|
||||
|
||||
gb.image
|
||||
gb.gui
|
||||
|
|
|
@ -1,9 +1,9 @@
|
|||
# Gambas Project File 3.0
|
||||
# Compiled with Gambas 3.5.90
|
||||
# Compiled with Gambas 3.6.90
|
||||
Title=Concéntrese Geográfico
|
||||
Startup=principal
|
||||
Icon=imagenes/logo.png
|
||||
Version=3.6.0
|
||||
Version=3.6.90
|
||||
VersionFile=1
|
||||
Component=gb.image
|
||||
Component=gb.gui
|
||||
|
@ -14,10 +14,10 @@ Authors="Jairo Alonso Badillo Bedoya"
|
|||
TabSize=2
|
||||
Translate=1
|
||||
Language=fr
|
||||
ExecPath=/home/jbadbe/Desktop/concent
|
||||
Maintainer=benoit
|
||||
Vendor=Princeton
|
||||
Address=benoit@localhost
|
||||
License=General Public Licence
|
||||
Packager=1
|
||||
Systems=redhat
|
||||
Tags=Example,Game,Sound,Spanish
|
||||
|
|
Loading…
Reference in a new issue