Skip to content

Commit 4ac918f

Browse files
authored
Update README.md
1 parent 438ec16 commit 4ac918f

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

README.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
<li><strong><a href="https://github.com/Brayden/starbasedb/blob/main/src/literest/README.md">REST API Support</a></strong> automatically included for interacting with your tables</li>
2727
<li><strong><a href="https://github.com/Brayden/starbasedb/edit/main/README.md#deploy-a-starbasedb">Database Interface</a></strong> included out of the box deployed with your Cloudflare Worker</li>
2828
<li><strong><a href="https://github.com/Brayden/starbasedb?tab=readme-ov-file#sql-dump">Export SQL Dump</a></strong> to extract your schema and data into a local `.sql` file</li>
29+
<li><strong><a href="https://github.com/Brayden/starbasedb?tab=readme-ov-file#sql-import">Import SQL Dump</a></strong> to import your schema and data from a local `.sql` file</li>
2930
<li><strong>Scale-to-zero Compute</strong> to reduce costs when your database is not in use</li>
3031
</ul>
3132
<br />
@@ -248,6 +249,17 @@ curl
248249
</code>
249250
</pre>
250251

252+
<h3>SQL Import</h3>
253+
<pre>
254+
<code>
255+
curl
256+
--location 'https://starbasedb.YOUR-ID-HERE.workers.dev/import/dump' \
257+
--header 'Authorization: Bearer ABC123' \
258+
--form 'sqlFile=@"./Desktop/sqldump.sql"'
259+
</code>
260+
</pre>
261+
262+
251263
<br />
252264
<h2>Contributing</h2>
253265
<p>We welcome contributions! Please refer to our <a href="./CONTRIBUTING.md">Contribution Guide</a> for more details.</p>

0 commit comments

Comments
 (0)