Skip to content

Commit 4aa3bba

Browse files
authored
Merge pull request #178 from documize/sql-store
Pluggable storage provider + PostgreSQL support
2 parents 2792c8c + 49f0574 commit 4aa3bba

File tree

269 files changed

+19912
-23948
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

269 files changed

+19912
-23948
lines changed

.gitignore

-1
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,6 @@ npm-debug.log
5959
debug
6060
*.pem
6161
*.crt
62-
Dockerfile
6362
container.sh
6463
make.sh
6564
jsconfig.json

Gopkg.lock

+19-6
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

README.md

+20-13
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
> We're committed to providing frequent product releases to ensure self-host customers enjoy the same product as our cloud/SaaS customers.
1+
> We provide frequent product releases ensuring self-host customers enjoy the same features as our cloud/SaaS customers.
22
>
33
> Harvey Kandola, CEO & Founder, Documize Inc.
44
@@ -58,26 +58,41 @@ Space view.
5858

5959
## Latest version
6060

61-
[Community edition: v1.70.0](https://github.com/documize/community/releases)
61+
[Community edition: v1.71.0](https://github.com/documize/community/releases)
6262

63-
[Enterprise edition: v1.72.0](https://documize.com/downloads)
63+
[Enterprise edition: v1.73.0](https://documize.com/downloads)
6464

6565
## OS support
6666

67-
Documize runs on the following:
67+
Documize can be installed and run on:
6868

6969
- Linux
7070
- Windows
7171
- macOS
7272

73-
# Browser support
73+
Heck, Documize will probably run just fine on a Raspberry Pi 3.
74+
75+
## Database support
76+
77+
Documize supports the following database systems:
78+
79+
- PostgreSQL (v9.6+)
80+
- MySQL (v5.7.10+ and v8.0.0+)
81+
- Percona (v5.7.16-10+)
82+
- MariaDB (10.3.0+)
83+
84+
Coming soon: Microsoft SQL Server 2017 (Linux/Windows).
85+
86+
## Browser support
7487

7588
Documize supports the following (evergreen) browsers:
7689

7790
- Chrome
7891
- Firefox
7992
- Safari
8093
- Brave
94+
- Vivaldi
95+
- Opera
8196
- MS Edge (16+)
8297

8398
## Technology stack
@@ -87,14 +102,6 @@ Documize is built with the following technologies:
87102
- EmberJS (v3.1.2)
88103
- Go (v1.10.3)
89104

90-
...and supports the following databases:
91-
92-
- MySQL (v5.7.10+)
93-
- Percona (v5.7.16-10+)
94-
- MariaDB (10.3.0+)
95-
96-
Coming soon, PostgreSQL and Microsoft SQL Server database support.
97-
98105
## Authentication options
99106

100107
Besides email/password login, you can also leverage the following options.

build.bat

+4-1
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,12 @@ copy core\database\templates\*.html embed\bindata
3232

3333
rd /s /q embed\bindata\scripts
3434
mkdir embed\bindata\scripts
35+
mkdir embed\bindata\scripts\mysql
36+
mkdir embed\bindata\scripts\postgresql
3537

3638
echo "Copying database scripts folder"
37-
robocopy /e /NFL /NDL /NJH core\database\scripts\autobuild embed\bindata\scripts
39+
robocopy /e /NFL /NDL /NJH core\database\scripts\mysql embed\bindata\scripts\mysql
40+
robocopy /e /NFL /NDL /NJH core\database\scripts\postgresql embed\bindata\scripts\postgresql
3841

3942
echo "Generating in-memory static assets..."
4043
go get -u github.com/jteeuwen/go-bindata/...

build.sh

+4-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,10 @@ cp domain/mail/*.html embed/bindata/mail
2727
cp core/database/templates/*.html embed/bindata
2828
rm -rf embed/bindata/scripts
2929
mkdir -p embed/bindata/scripts
30-
cp -r core/database/scripts/autobuild/*.sql embed/bindata/scripts
30+
mkdir -p embed/bindata/scripts/mysql
31+
mkdir -p embed/bindata/scripts/postgresql
32+
cp -r core/database/scripts/mysql/*.sql embed/bindata/scripts/mysql
33+
cp -r core/database/scripts/postgresql/*.sql embed/bindata/scripts/postgresql
3134

3235
echo "Generating in-memory static assets..."
3336
# go get -u github.com/jteeuwen/go-bindata/...

core/api/plugins/glick.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ import (
2222
"github.com/documize/community/core/api/convert/html"
2323
"github.com/documize/community/core/api/convert/md"
2424
api "github.com/documize/community/core/convapi"
25-
"github.com/documize/community/domain"
25+
"github.com/documize/community/domain/store"
2626
"github.com/documize/glick"
2727
)
2828

@@ -49,7 +49,7 @@ var Lib *glick.Library
4949

5050
// Setup configures the global library at Lib,
5151
// largely based on the "config.json" file. It should be called only once.
52-
func Setup(s *domain.Store) error {
52+
func Setup(s *store.Store) error {
5353
if insecure == "true" {
5454
glick.InsecureSkipVerifyTLS = true
5555
}

0 commit comments

Comments
 (0)