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

Postgres / sqlite support #50

Open
perezale opened this issue Feb 12, 2020 · 5 comments
Open

Postgres / sqlite support #50

perezale opened this issue Feb 12, 2020 · 5 comments

Comments

@perezale
Copy link

is postgres or sqlite support available? Just tried both with no luck at 'SHOW COLUMNS... ' 😢

If so, maybe there should be a message in README

@jasonmccreary
Copy link
Collaborator

I'll take a look as I plan to revisit the way these are loaded in the coming weeks.

@mstaack
Copy link

mstaack commented Feb 19, 2020

great news, just came across this issue.

@jasonmccreary
Didn't do a deep dive into the code, but

DB::connection()->getDoctrineSchemaManager()->listTableColumns('users')

gives me the postgres columns via the optional doctrine/dbal package

result:

array:8 [
  "id" => Doctrine\DBAL\Schema\Column {#1305
    #_type: Doctrine\DBAL\Types\BigIntType {#1315}
    #_length: null
    #_precision: 10
    #_scale: 0
    #_unsigned: false
    #_fixed: false
    #_notnull: true
    #_default: null
    #_autoincrement: true
    #_platformOptions: []
    #_columnDefinition: null
    #_comment: null
    #_customSchemaOptions: []
    #_name: "id"
    #_namespace: null
    #_quoted: false
  }
  "name" => Doctrine\DBAL\Schema\Column {#1340
    #_type: Doctrine\DBAL\Types\StringType {#1335}
    #_length: 255
    #_precision: 10
    #_scale: 0
    #_unsigned: false
    #_fixed: false
    #_notnull: true
    #_default: null
    #_autoincrement: false
    #_platformOptions: []
    #_columnDefinition: null
    #_comment: null
    #_customSchemaOptions: []
    #_name: "name"
    #_namespace: null
    #_quoted: false
  }
....

@Chingoski
Copy link

Are there any updates on the support for postgres? I cant seem to get the package running for my postgers 9.6DB on laravel 6.10. Every time i run the command i get the same error "Could not analyse class []"

@jasonmccreary
Copy link
Collaborator

Haven't circled back. You're welcome to open a PR.

@Chingoski
Copy link

@jasonmccreary I have found a possible solution i will try to open an PR later this day or tomorrow.

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

4 participants