D
D
Dmitry Mironov2014-01-22 16:47:55
PHP
Dmitry Mironov, 2014-01-22 16:47:55

SQLite. Inverting the view schema.table

I am working on Php MySQL. There was a desire to replace MySQL with SQLite for tests.
There are a lot of queries in the project where the schema is put down, for example SELECT * FROM `schema`.`table`
When building such a query in SQLite, I get the error "General error: 1 unknown database schema."
Is it possible somehow to create a multi-schema SQLite adapter?
If not, can you recommend an embeddable base supporting schemas

Answer the question

In order to leave comments, you need to log in

1 answer(s)
L
little brother, 2020-08-20
@MironovDV

Attachable databases can be used instead of schemas.

attach database my.sqlite as myschema;
select * from myschema.t1;

PS I see that the question is already old, but perhaps the answer is useful to someone.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question