Skip to content

Postgres select table with schema #523

Discussion options

You must be logged in to vote

Figured it out. Documentation is extremely lacking for this. Finally found it after skimming through this pull request which I found while reading the patch logs. SeaQL/sea-schema#26

#[derive(Iden)]
pub enum OrganizationTable {
    // #[iden = "auto"]
    // Schema,
    #[iden = "auto.ppm_organization"]
    Table,
    Name,
    Description,
    LatestVersion,
    Organization,
    Tags
}	
  let (query, args) = Query::select().from((OrganizationTable::Schema, OrganizationTable::Table)).columns([Plugin::Name]).build_postgres(PostgresQueryBuilder);

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@billy1624
Comment options

Answer selected by AdamJSoftware
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants