Skip to content

Proposal for Scribe-Server #22

@axif0

Description

@axif0

Terms

Description

For downstream application like Scribe-Android, Scribe-IOS, Scribe-Desktop or Scribe-web, Scribe-server plays a major role to pass the data from Scribe-Data. To make this transaction happen, we need to

  1. Populate sqlite files Scribe-Data or create a workflow, that run and update sqlite files periodically.

  2. Rename the sqlite file like {iso}_{lang}_langdb.sqlite, so that we can get iso and lang. And can save them in MariaDB in Scribe_server_details table.
    Image

  3. We need to first make migration first. Sqlite to MariaDB. We need to install these library to make the migration happen.

    • go get github.com/go-sql-driver/mysql
    • go get github.com/mattn/go-sqlite3

Using make migrate we can able to start the transaction, We also need threading, as it takes good amount of time we need to use files in parallel.
Image

In server it saves like these-
Image

  1. Using mysqldump -h localhost -P 3306 -u root -p --no-data scribe_server > db/schema/schema.sql to generate schema. which covers > Create the database schema for Scribe-Server #19

Image

  1. In query.sql we need to write the queries.

  2. Using make generate-db' cmd db.go,models.goandquery.sql.go` will be created.

    Image

  3. And routing logic will be after that.

CC: @wkyoshida , @andrewtavis , @henrikth93

This is my understanding of Scribe-Server so far. Am I on the right track? Your suggestions would be really helpful! 😊

Contribution

No response

Metadata

Metadata

Assignees

Labels

help wantedExtra attention is neededquestionFurther information is requested

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions