Re: [cargo] can't find table with cargo_query

Yaron Koren <[email protected]>
Newsgroups gmane.org.wikimedia.mediawiki
Message-ID <CAGmQEQE4Lu_5FJt+0Hq9XmW4ZpTfOTzTrJdFk0APx2vROtHF2A@mail.gmail.com>
Hi David,

My guess is that you haven't created the Cargo table yet - that needs to be
done as a separate step. Here is how to do it, if you don't know how:

https://www.mediawiki.org/wiki/Extension:Cargo/Storing_data#Creating_or_recreating_a_table

-Yaron

On Thu, Sep 2, 2021 at 2:17 PM David Epstein <[email protected]> wrote:

> I'm trying to query the cargo database. In PageSchemas, the table is
> called simply "Place". Here is the query:
>
> {{#cargo_query:
> table=Place
> |fields=Place._pageName, Type
> |where=Place.Type="Planet"
> |format=dynamic table
> }}
>
> The code above produces "Error: Table Place not found." as does prepending
> the table name with "cargo__" or "cargo_". What am I doing wrong?
>
> -david
> _______________________________________________
> MediaWiki-l mailing list -- [email protected]
> List information:
> https://lists.wikimedia.org/postorius/lists/mediawiki-l.lists.wikimedia.org/
>


-- 
WikiWorks · MediaWiki Consulting · http://wikiworks.com

_______________________________________________
MediaWiki-l mailing list -- [email protected]
List information: https://lists.wikimedia.org/postorius/lists/mediawiki-l.lists.wikimedia.org/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.