sqlite: add Windows instructions to readme (#7041)

pull/7059/head
Lukas Neubert 2020-12-01 04:00:41 +01:00 committed by GitHub
parent 879d238887
commit 552de94da6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 22 additions and 13 deletions

View File

@ -23,20 +23,26 @@ The code is available <a href='https://github.com/vlang/v/tree/master/tutorials/
### Installing V
```
wget https://github.com/vlang/v/releases/latest/download/v_linux.zip
unzip v_linux.zip
wget https://github.com/vlang/v/releases/latest/download/linux.zip
unzip linux.zip
cd v
sudo ./v symlink
```
Now V should be globally available on your system.
> On macOS use `v_macos.zip`, on Windows - `v_windows.zip`.
> On macOS use `macos.zip`, on Windows - `windows.zip`.
If you use a BSD system, Solaris, Android, or simply want to install V
from source, follow the simple instructions here:
https://github.com/vlang/v#installing-v-from-source
### Install SQLite development dependency
If you don't have it already installed, look at the
[`sqlite` README](../vlib/sqlite/README.md) for instructions.
### Creating a new Vweb project
V projects can be created anywhere and don't need to have a certain structure:
@ -159,7 +165,7 @@ but V is a language with pure functions by default, and you won't be able
to modify any data from a view. `<b>@foo.bar()</b>` will only work if the `bar()` method
doesn't modify `foo`.
The HTML template is compiled to V during the compilation of the website,
The HTML template is compiled to V during the compilation of the website,
that's done by the `$vweb.html()` line.
(`$` always means compile time actions in V.) offering the following benefits:
@ -176,7 +182,7 @@ into a single binary file together with the web application itself.
Now let's display some articles!
We'll be using V's builtin ORM and a SQLite database.
We'll be using V's builtin ORM and a SQLite database.
(V ORM will also support MySQL, Postgre, and SQL Server soon.)
Create a SQLite file with the schema:

View File

@ -1,13 +1,16 @@
# Install SQLite Dependency
# to use module `sqlite`, install `sqlite-devel` first.
**Fedora 31**:
for **Fedora 31**:
sudo dnf -y install sqlite-devel
`sudo dnf -y install sqlite-devel`
for **Ubuntu 20.04**:
sudo apt install -y libsqlite3-dev
**Ubuntu 20.04**:
`sudo apt install -y libsqlite3-dev`
**Windows**:
- Download the source zip from [SQLite Downloads](https://sqlite.org/download.html)
- Create a new `sqlite` subfolder inside `v/thirdparty`
- Extract the zip into that folder