1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
use crate;
/// Represents a plain string, a SQL text segment, or a string with preserved whitespace in py_sql.
/// This node holds parts of the SQL query that are not dynamic tags or raw text.
///
/// # Examples
///
/// PySQL syntax for simple text segments:
/// ```py
/// SELECT * FROM users WHERE
/// if name != null:
/// name = #{name}
/// // In the above, "SELECT * FROM users WHERE " is a StringNode.
/// ```
///
/// PySQL syntax for strings with preserved whitespace (using backticks - single line only):
/// ```py
/// ` SELECT column1, column2 FROM my_table `
/// ```
///
/// It also handles simple quoted strings if they are part of the py_sql structure:
/// ```py
/// // Example within a more complex structure (e.g., an expression):
/// // if status == 'active':
/// ```