Changeset 8e64dcd in tol
- Timestamp:
- Nov 10, 2008, 6:43:34 PM (18 years ago)
- Branches:
- 1941-docker-image-to-test, devel, master
- Children:
- 8d5f19b
- Parents:
- 2291fa7
- Location:
- tol/stdlib/math/stat/models/bayesian/bysMcmc/bsr/dynhlm
- Files:
-
- 2 edited
-
_db_api.tol (modified) (3 diffs)
-
_db_api.tools.tol (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
tol/stdlib/math/stat/models/bayesian/bysMcmc/bsr/dynhlm/_db_api.tol
r2291fa7 r8e64dcd 17 17 //release 18 18 Real _.engine = SqlEngine::GesMys; 19 20 //Database must be open before to use this API but some methods could use 21 //connection parameters. Then this field must be defined previously. 22 NameBlock dbConnect = UNKNOWN; 19 23 20 24 //Enables or disables SQL tracing … … 42 46 Real Stop 43 47 }; 44 45 Code SqlExecScript = SqlExecScript.NotImplemented;46 48 47 49 //Set of TOL alias for database tables … … 82 84 Code SqlTableTrace; 83 85 Code SqlExecTrace; 86 Code SqlExecScript; 84 87 Code SqlCachedTableFile; 85 88 Code SqlCachedInsert; -
tol/stdlib/math/stat/models/bayesian/bysMcmc/bsr/dynhlm/_db_api.tools.tol
r2291fa7 r8e64dcd 37 37 DBTable(query), 38 38 DBTable(query, structure)) 39 }; 40 41 ////////////////////////////////////////////////////////////////////////////// 42 Real SqlExecScript(Text filePath) 43 ////////////////////////////////////////////////////////////////////////////// 44 { 45 Case( 46 _.engine==SqlEngine::GesMys, 47 { 48 Text command = 49 "mysql " 50 "-h"+dbConnect::_.server+" "+ 51 "-D"+dbConnect::_.defaultDB+" "+ 52 "-u"+dbConnect::_.user+" "+ 53 "-p"+dbConnect::_.password+" "+ 54 "--disable-auto-rehash " 55 "--compress " 56 "< \""+filePath+"\""; 57 WriteLn("[SqlExecScript] "+command); 58 OSConWait(command,1) 59 }, 60 { 61 WriteLn("[SqlExecScript] Not implemented for engine "+_.engine,"E"); 62 0 63 }) 39 64 }; 40 65
Note: See TracChangeset
for help on using the changeset viewer.
