Skip to content

Commit 480f188

Browse files
committed
Update Database.php
1 parent 99537cf commit 480f188

1 file changed

Lines changed: 14 additions & 0 deletions

File tree

src/DisciteDB/Database.php

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -230,6 +230,20 @@ public function table(string $name): QueryResult|TableInterface
230230
}
231231

232232

233+
/**
234+
* Retrieve SQL map.
235+
*
236+
* Return SQL map if you decide to load database from SQL requests or file.
237+
*
238+
* @return ?array Returns the multidmentional array of map if exist.
239+
*
240+
*/
241+
public function map() : ?array
242+
{
243+
return $this->map;
244+
}
245+
246+
233247
/**
234248
* Magic getter to retrieve a table interface by property access.
235249
*

0 commit comments

Comments
 (0)