Skip to content

Missing postgres user #387

Description

@dvdplm

Out put when running TEST_DATABASE_URL="postgres://localhost:5432/archive" cargo test:

error: error returned from database: role "postgres" does not exist
  --> /Users/aggron/dev/work/substrate-archive/substrate-archive/src/database/queries.rs:65:5
   |
65 |       Ok(sqlx::query_as!(
   |  ________^
66 | |         Series,
67 | |         "
68 | |         SELECT missing_num
...  |
76 | |         max_block_load
77 | |     )
   | |_____^
   |
   = note: this error originates in the macro `$crate::sqlx_macros::expand_query` (in Nightly builds, run with -Z macro-backtrace for more info)

I guess this means I need a postgres user?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions