Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

create index action and create-table option #116

Open
Meaglin opened this issue Jun 2, 2015 · 3 comments
Open

create index action and create-table option #116

Meaglin opened this issue Jun 2, 2015 · 3 comments

Comments

@Meaglin
Copy link

Meaglin commented Jun 2, 2015

Allow defining an index when creating a table and also create index query type.

@jrf0110
Copy link
Member

jrf0110 commented Jun 8, 2015

Hey, @Meaglin I've been on vacation for the past week, so I'm just getting to my notifications.

When you say defining an index when creating a table, do you mean to allow the create-table query to output multiple queries? If so, I think that may be out-of-scope of the project.

However, we do need to add a create-index query type. I will take care of that in #117

@Meaglin
Copy link
Author

Meaglin commented Jun 8, 2015

I'm actually using mongo-sql for both postgres and mysql. And in mysql you can define ur index inside your create table query:

CREATE TABLE 'name' (
'id' int(10) primary,
'name' varchar(255),
'status' varchar(255),
unique 'unique key name' ('name', 'status'),
key 'key name' ('id', 'name')
)

And i was also missing the separate option to define an index: CREATE INDEX 'index_name' ('id','status')
as covered by #117

@jrf0110
Copy link
Member

jrf0110 commented Jun 8, 2015

Interesting. That actually shouldn't be too bad to support

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants