Skip to content

Commit b0ba970

Browse files
committed
Final updates
1 parent dbdb4b8 commit b0ba970

2 files changed

Lines changed: 18 additions & 3 deletions

File tree

docs/pages/features/queries.mdx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ console.log(res.rows[0])
2626
// { name: 'brianc', email: 'brian.m.carlson@gmail.com' }
2727
```
2828

29-
<div class="alert alert-warning">
29+
<div className="alert alert-warning">
3030
PostgreSQL does not support parameters for identifiers. If you need to have dynamic database, schema, table, or column names (e.g. in DDL statements) use [pg-format](https://www.npmjs.com/package/pg-format) package for handling escaping these values to ensure you do not have SQL injection!
3131
</div>
3232

@@ -99,8 +99,8 @@ console.log(res.rows[0])
9999

100100
In the above example the first time the client sees a query with the name `'fetch-user'` it will send a 'parse' request to the PostgreSQL server & execute the query as normal. The second time, it will skip the 'parse' request and send the _name_ of the query to the PostgreSQL server.
101101

102-
<div class='message is-warning'>
103-
<div class='message-body'>
102+
<div className='message is-warning'>
103+
<div className='message-body'>
104104
Be careful not to fall into the trap of premature optimization. Most of your queries will likely not benefit much, if at all, from using prepared statements. This is a somewhat "power user" feature of PostgreSQL that is best used when you know how to use it - namely with very complex queries with lots of joins and advanced operations like union and switch statements. I rarely use this feature in my own apps unless writing complex aggregate queries for reports and I know the reports are going to be executed very frequently.
105105
</div>
106106
</div>

docs/theme.config.js

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,21 @@ l-161 -22 -94 41 c-201 87 -327 113 -533 112 -77 -1 -166 -7 -196 -13z m-89
6868
chat: {
6969
link: 'https://discord.gg/2afXp5vUWm',
7070
},
71+
navbar: {
72+
extraContent: (
73+
<a
74+
href="https://github.com/sponsors/brianc"
75+
target="_blank"
76+
rel="noopener noreferrer"
77+
title="Sponsor this project"
78+
className="_p-2 _text-current"
79+
>
80+
<svg viewBox="0 0 24 24" width="24" height="24" fill="#db61a2">
81+
<path d="M12 21.35l-1.45-1.32C5.4 15.36 2 12.28 2 8.5 2 5.42 4.42 3 7.5 3c1.74 0 3.41.81 4.5 2.09C13.09 3.81 14.76 3 16.5 3 19.58 3 22 5.42 22 8.5c0 3.78-3.4 6.86-8.55 11.54L12 21.35z" />
82+
</svg>
83+
</a>
84+
),
85+
},
7186
head: (
7287
<>
7388
<meta name="viewport" content="width=device-width, initial-scale=1.0" />

0 commit comments

Comments
 (0)