equal
deleted
inserted
replaced
81 |
81 |
82 <p> |
82 <p> |
83 SQL scripts can be used for storing relational data as an alternative to other human-readable and human-editable text formats like XML, CSV or Recfiles. |
83 SQL scripts can be used for storing relational data as an alternative to other human-readable and human-editable text formats like XML, CSV or Recfiles. |
84 And compared to the other formats, SQL scripts may contain even some logic (e.g. call SQL functions) or views. |
84 And compared to the other formats, SQL scripts may contain even some logic (e.g. call SQL functions) or views. |
85 </p> |
85 </p> |
86 |
86 |
|
87 <p> |
|
88 n.b. The SQL script does not contain only data – it is an executable script and running it might be dangerous. |
|
89 Depending on SQL engine used (the default one is SQLite, but others like PostgreSQL or MySQL/MariaDB can be used), |
|
90 such script may call various functions and some of them might read or write local files or do some other unsafe operations. |
|
91 Thus the SQL scripts comming from untrusted sources must be carefully reviewed or executed in an isolated environment (sandbox). |
|
92 We can run <code>relpipe-in-sql</code> using <code>sudo</code> under an unprivileged account or using <code>ssh</code> doing the same even on a remote machine (virtual od physical one or a container dedicated for such dirty work). |
|
93 Or we can use the <code>--data-source-name</code> or <code>--data-source-string</code> options and run such script on a remote DBMS under an unprivileged database account or on a sandbox database that will be destroyed or refreshed after use. |
|
94 </p> |
87 |
95 |
88 </text> |
96 </text> |
89 |
97 |
90 </stránka> |
98 </stránka> |