(query, name, virtual)
| 920 | } |
| 921 | |
| 922 | async _getKeyspace(query, name, virtual) { |
| 923 | try { |
| 924 | const row = await this._getFirstRow(format(query, name)); |
| 925 | |
| 926 | if (!row) { |
| 927 | return null; |
| 928 | } |
| 929 | |
| 930 | return this._parseKeyspace(row, virtual); |
| 931 | } |
| 932 | catch (err) { |
| 933 | if (virtual) { |
| 934 | // only throw error for non-virtual query as |
| 935 | // server reporting C* 4.0 may not actually implement |
| 936 | // virtual tables. |
| 937 | return null; |
| 938 | } |
| 939 | throw err; |
| 940 | } |
| 941 | } |
| 942 | } |
| 943 | |
| 944 | /** |
no test coverage detected