Skip to content
This repository was archived by the owner on Jan 28, 2021. It is now read-only.

Improve README #207

Merged
merged 2 commits into from
Jun 7, 2018
Merged

Improve README #207

merged 2 commits into from
Jun 7, 2018

Conversation

ajnavarro
Copy link
Contributor

Signed-off-by: Antonio Jesus Navarro Perez antnavper@gmail.com

Signed-off-by: Antonio Jesus Navarro Perez <antnavper@gmail.com>
Copy link
Contributor

@erizocosmico erizocosmico left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just some grammatical fixes and typos

README.md Outdated
`go-mysql-server` has a sql engine and a server implementation, so to start a server you must instantiate the engine and give it your `sql.Database` implementation that will be in charge to handle all the logic about retrieving the data from your source :
`go-mysql-server` has a sql engine and a server implementation,
so to start a server you must instantiate the engine and give it your `sql.Database` implementation.
It will be in charge to handle all the logic about retrieving the data from your source.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

s/to handle/of handling/

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

s/about retrieving/for retrieving/

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

or maybe "...to retrieve the data from your source"

README.md Outdated
To be able to create your own data source implementation you need to implement the following interfaces:

- `sql.Database` interface. This interface will provide tables from your data source.
- If your database implementation supports add more tables, you might want to add support to `sql.Alterable` interface
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

s/supports add more tables/supports adding more tables/
s/add support to/add support for/

README.md Outdated
- `sql.Database` interface. This interface will provide tables from your data source.
- If your database implementation supports add more tables, you might want to add support to `sql.Alterable` interface

- `sql.Table` interface. It will be in charge to transform any kind of data to an iterator of Rows. Depending of how much you want to optimize the queries, you also can implement other interfaces on your tables:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

s/to transform/of transforming/
s/to an iterator/into an iterator/

README.md Outdated
- If your database implementation supports add more tables, you might want to add support to `sql.Alterable` interface

- `sql.Table` interface. It will be in charge to transform any kind of data to an iterator of Rows. Depending of how much you want to optimize the queries, you also can implement other interfaces on your tables:
- `sql.PushdownProjectionTable` interface will provides you a way to get only the columns needed for the executed query.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

s/will provides/will provide/

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

s/you a way/a way/

README.md Outdated

- `sql.Table` interface. It will be in charge to transform any kind of data to an iterator of Rows. Depending of how much you want to optimize the queries, you also can implement other interfaces on your tables:
- `sql.PushdownProjectionTable` interface will provides you a way to get only the columns needed for the executed query.
- `sql.PushdownProjectionAndFiltersTable` interface will provide the same functionality described before, but also will push down the filters used in the executed query. Doing this, it allows you to filter before hand data, and improve query speed.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

s/it allows you to/you can/
s/before hand data/data beforehand/
s/query speed/the query speed/

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe:

It allows to filter a data in advance, and speed up query

README.md Outdated
- `sql.Table` interface. It will be in charge to transform any kind of data to an iterator of Rows. Depending of how much you want to optimize the queries, you also can implement other interfaces on your tables:
- `sql.PushdownProjectionTable` interface will provides you a way to get only the columns needed for the executed query.
- `sql.PushdownProjectionAndFiltersTable` interface will provide the same functionality described before, but also will push down the filters used in the executed query. Doing this, it allows you to filter before hand data, and improve query speed.
- `sql.Indexable` add index capabilities to your table. Implementing this interface you can create and use indexes on this tables.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

s/Implementing this/By implementing this/
s/on this tables/on this table/

README.md Outdated
- `sql.PushdownProjectionTable` interface will provides you a way to get only the columns needed for the executed query.
- `sql.PushdownProjectionAndFiltersTable` interface will provide the same functionality described before, but also will push down the filters used in the executed query. Doing this, it allows you to filter before hand data, and improve query speed.
- `sql.Indexable` add index capabilities to your table. Implementing this interface you can create and use indexes on this tables.
- `sql.Inserter` can be implemented if your data source tables allows insertions.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

s/allows/allow/

README.md Outdated

## Example

`go-mysql-server` has a sql engine and a server implementation, so to start a server you must instantiate the engine and give it your `sql.Database` implementation that will be in charge to handle all the logic about retrieving the data from your source :
`go-mysql-server` has a sql engine and a server implementation,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would write sth. like:

...contains a sql engine and server implementation. So, if you want to start a server, first instantiate the engine and pass your sql.Database implementation.

Copy link
Contributor

@kuba-- kuba-- left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok

Copy link
Contributor

@jfontan jfontan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

After addressing previous comments 👍

Signed-off-by: Antonio Jesus Navarro Perez <antnavper@gmail.com>
@ajnavarro
Copy link
Contributor Author

@erizocosmico done.

@ajnavarro ajnavarro merged commit 1bf7990 into src-d:master Jun 7, 2018
@ajnavarro ajnavarro deleted the improve-readme branch June 7, 2018 09:06
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants