Sync from remote server: 2025-10-12 18:56:41
This commit is contained in:
27
RSN/database_definition.m
Executable file
27
RSN/database_definition.m
Executable file
@@ -0,0 +1,27 @@
|
||||
function DB = database_definition(~,FileName)
|
||||
|
||||
%% DB ASE
|
||||
|
||||
fileID = fopen(FileName,'a');
|
||||
fmt = '%s \r';
|
||||
text = 'database_definition function started';
|
||||
fprintf(fileID,fmt,text);
|
||||
|
||||
Dati = importdata('DB.txt');
|
||||
dbname = Dati{1,1};
|
||||
username = Dati{2,1};
|
||||
password = Dati{3,1};
|
||||
driver = Dati{4,1};
|
||||
dburl = Dati{5,1};
|
||||
|
||||
DB{1,1} = cellstr(dbname);
|
||||
DB{2,1} = cellstr(username);
|
||||
DB{3,1} = cellstr(password);
|
||||
DB{4,1} = cellstr(driver);
|
||||
DB{5,1} = cellstr(dburl);
|
||||
|
||||
text = 'Database defined correctly and database_definition function closed';
|
||||
fprintf(fileID,fmt,text);
|
||||
fclose(fileID);
|
||||
|
||||
end
|
||||
Reference in New Issue
Block a user