Skip to content

Commit 135a728

Browse files
committed
How to modify program.fs.
1 parent a786aa8 commit 135a728

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

doc/Tutorial/README.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,9 @@ If you'd like to take a look around it and see the tables, I recommend using
8989

9090
## Adding some data
9191

92-
You add data to your tables using plain old SQL `INSERT` statements. Try adding this code to your program:
92+
You add data to your tables using plain old SQL `INSERT` statements. Try adding
93+
this code to your program (if you're lazy, just delete your `main` function and
94+
paste this in its place):
9395

9496
```fsharp
9597
open Rezoom.SQL.Synchronous // extension methods for running commands synchronously
@@ -130,6 +132,7 @@ in the program, you can run it again. Try editing it to get an email address at
130132

131133
So far you've already run a query once: the `select last_insert_rowid() as id` following inserting a user.
132134
But you can use the `SQL<...>` provided type to run all sorts of SQL queries. Let's try getting the list of users.
135+
Again, you can add this code onto your program by removing your `main` function and putting this code in its place.
133136

134137
```fsharp
135138
type ListUsers = SQL<"""

0 commit comments

Comments
 (0)