JoaoHamerski's avatar

How to extends DB facade setting the driver to 'sqlite' and the database file?

I want to create a new class to create my own methods, but letting the methods of DB facade avaliable too, but i want to create a new Facade that i call and it already come with a database configured, is it possible?

0 likes
2 replies
JoaoHamerski's avatar

I know that, but what i mean is that i want to manage a sqlite database file with my own methods, i want to extends the DB facade but instantitate a new class where i can set different database files and have my own methods, for example, "showAllTables()", "showAllTableNames()" and etc... How is the best way to do it?

Please or to participate in this conversation.