-
Notifications
You must be signed in to change notification settings - Fork 110
Improve README #207
Improve README #207
Conversation
Signed-off-by: Antonio Jesus Navarro Perez <antnavper@gmail.com>
There was a problem hiding this 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. |
There was a problem hiding this comment.
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/
There was a problem hiding this comment.
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/
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
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: |
There was a problem hiding this comment.
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. |
There was a problem hiding this comment.
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/
There was a problem hiding this comment.
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. |
There was a problem hiding this comment.
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/
There was a problem hiding this comment.
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. |
There was a problem hiding this comment.
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. |
There was a problem hiding this comment.
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, |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ok
There was a problem hiding this 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>
@erizocosmico done. |
Signed-off-by: Antonio Jesus Navarro Perez antnavper@gmail.com