Fix indents.

This commit is contained in:
Relintai 2024-04-27 23:06:38 +02:00
parent 3dfa9bd7e8
commit 956bc0e9a0

View File

@ -23,13 +23,13 @@
print("Inserting 10 values!") print("Inserting 10 values!")
for i in range(10): for i in range(10):
ps.reset() ps.reset()
ps.bind_text(1, "vc" + str(randi())) ps.bind_text(1, "vc" + str(randi()))
ps.bind_text(2, "text" + str(randi())) ps.bind_text(2, "text" + str(randi()))
ps.bind_int(3, randi()) ps.bind_int(3, randi())
ps.bind_double(4, randf() * 100000) ps.bind_double(4, randf() * 100000)
ps.step() ps.step()
[/code] [/code]
Usge example using [QueryBuilder]: Usge example using [QueryBuilder]:
[code] [code]
@ -44,13 +44,13 @@
print("Inserting 10 values!") print("Inserting 10 values!")
for i in range(10): for i in range(10):
ps.reset() ps.reset()
ps.bind_text(1, "vc" + str(randi())) ps.bind_text(1, "vc" + str(randi()))
ps.bind_text(2, "text" + str(randi())) ps.bind_text(2, "text" + str(randi()))
ps.bind_int(3, randi()) ps.bind_int(3, randi())
ps.bind_double(4, randf() * 100000) ps.bind_double(4, randf() * 100000)
ps.step() ps.step()
[/code] [/code]
</description> </description>
<tutorials> <tutorials>