mirror of
https://github.com/fastapi-users/fastapi-users.git
synced 2026-03-13 07:49:55 +08:00
Automated deployment: Sun May 2 06:43:28 UTC 2021 89cff15c6b
This commit is contained in:
@@ -12,7 +12,7 @@
|
||||
|
||||
|
||||
<link rel="icon" href="../../../favicon.png">
|
||||
<meta name="generator" content="mkdocs-1.1.2, mkdocs-material-7.1.2">
|
||||
<meta name="generator" content="mkdocs-1.1.2, mkdocs-material-7.1.3">
|
||||
|
||||
|
||||
|
||||
@@ -20,7 +20,7 @@
|
||||
|
||||
|
||||
|
||||
<link rel="stylesheet" href="../../../assets/stylesheets/main.6f955dcd.min.css">
|
||||
<link rel="stylesheet" href="../../../assets/stylesheets/main.e35208c4.min.css">
|
||||
|
||||
|
||||
<link rel="stylesheet" href="../../../assets/stylesheets/palette.ef6f36e2.min.css">
|
||||
@@ -857,11 +857,11 @@
|
||||
<p><strong>FastAPI Users</strong> provides the necessary tools to work with SQL databases thanks to <a href="https://docs.sqlalchemy.org/en/13/core/">SQLAlchemy Core</a> and <a href="https://www.encode.io/databases/">encode/databases</a> package for full async support.</p>
|
||||
<h2 id="installation">Installation<a class="headerlink" href="#installation" title="Permanent link">¶</a></h2>
|
||||
<p>Install the database driver that corresponds to your DBMS:</p>
|
||||
<div class="highlight"><pre><span></span><code>pip install databases<span class="o">[</span>postgresql<span class="o">]</span>
|
||||
<div class="highlight"><pre><span></span><code>pip install <span class="s1">'databases[postgresql]'</span>
|
||||
</code></pre></div>
|
||||
<div class="highlight"><pre><span></span><code>pip install databases<span class="o">[</span>mysql<span class="o">]</span>
|
||||
<div class="highlight"><pre><span></span><code>pip install <span class="s1">'databases[mysql]'</span>
|
||||
</code></pre></div>
|
||||
<div class="highlight"><pre><span></span><code>pip install databases<span class="o">[</span>sqlite<span class="o">]</span>
|
||||
<div class="highlight"><pre><span></span><code>pip install <span class="s1">'databases[sqlite]'</span>
|
||||
</code></pre></div>
|
||||
<p>For the sake of this tutorial from now on, we'll use a simple SQLite databse.</p>
|
||||
<h2 id="setup-user-table">Setup User table<a class="headerlink" href="#setup-user-table" title="Permanent link">¶</a></h2>
|
||||
|
||||
Reference in New Issue
Block a user