I have setup my local D1 using wrangler and --local, I have inserted a row and can retrieve the row

I have setup my local D1 using wrangler and --local, I have inserted a row and can retrieve the row using wrangler execute, when I run my function I get
Error: D1_ERROR: no such table: company
, I have my D! config in my toml file and when I run my pages I pass
--d1=DB
which matches the binding name in my toml, what have I done wrong ?
Was this page helpful?