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

Provide a standalone infer function #33

Closed
roll opened this issue Sep 13, 2017 · 1 comment
Closed

Provide a standalone infer function #33

roll opened this issue Sep 13, 2017 · 1 comment

Comments

@roll
Copy link
Member

roll commented Sep 13, 2017

Overview

For now there is only one infer mention in readme. And it says:

You can instantiate a table object without schema, in this case the schema will be inferred automatically based on the data

$table = new Table("tests/fixtures/data.csv");
$table->schema()->fields();  // ["first_name" => StringField, "last_name" => StringField, "order" => IntegerField]

It useful (and often used in other languages) to have this functionality ALSO not related to the Table class e.g. as:

  • Schema::infer
@OriHoch
Copy link
Collaborator

OriHoch commented Nov 30, 2017

added in 3748750

@OriHoch OriHoch closed this as completed Nov 30, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants