Skip to content

Commit

Permalink
fix README headers
Browse files Browse the repository at this point in the history
  • Loading branch information
kyleconroy committed Dec 1, 2023
1 parent 79a6702 commit adc5682
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,6 @@ sql:
## Getting started
# Getting started with PostgreSQL
This tutorial assumes that the latest version of sqlc is
[installed](https://docs.sqlc.dev/en/latest/overview/install.html) and ready to use.
Expand All @@ -48,7 +46,7 @@ an optional feature that improves sqlc's query analysis in many cases, but you
can turn it off simply by removing the `cloud` and `database` sections of your
configuration.

## Setting up
### Setting up

Create a new directory called `sqlc-tutorial` and open it up.

Expand Down Expand Up @@ -94,7 +92,7 @@ And finally, set the `SQLC_AUTH_TOKEN` environment variable:
export SQLC_AUTH_TOKEN="<your sqlc auth token>"
```

## Schema and queries
### Schema and queries

sqlc needs to know your database schema and queries in order to generate code.
In the same directory, create a file named `schema.sql` with the following
Expand Down Expand Up @@ -150,7 +148,7 @@ WHERE id = $1
RETURNING *;
```

## Generating code
### Generating code

You are now ready to generate code. You shouldn't see any output when you run
the `generate` subcommand, unless something goes wrong:
Expand All @@ -171,7 +169,7 @@ source code. These files comprise a Go package named `tutorial`:
├── query_sql.ts
```

## Using generated code
### Using generated code

You can use your newly-generated code package from any TypeScript program.
Create a file named `src/main.ts` and add the following contents:
Expand Down

0 comments on commit adc5682

Please sign in to comment.