|
| 1 | +/* |
| 2 | + * Copyright (c) 2023, Oracle and/or its affiliates. |
| 3 | + * |
| 4 | + * This program is free software; you can redistribute it and/or modify |
| 5 | + * it under the terms of the GNU General Public License, version 2.0, as |
| 6 | + * published by the Free Software Foundation. |
| 7 | + * |
| 8 | + * This program is also distributed with certain software (including |
| 9 | + * but not limited to OpenSSL) that is licensed under separate terms, |
| 10 | + * as designated in a particular file or component or in included license |
| 11 | + * documentation. The authors of MySQL hereby grant you an |
| 12 | + * additional permission to link the program and your derivative works |
| 13 | + * with the separately licensed software that they have included with |
| 14 | + * MySQL. |
| 15 | + * |
| 16 | + * Without limiting anything contained in the foregoing, this file, |
| 17 | + * which is part of MySQL Connector/Node.js, is also subject to the |
| 18 | + * Universal FOSS Exception, version 1.0, a copy of which can be found at |
| 19 | + * http://oss.oracle.com/licenses/universal-foss-exception. |
| 20 | + * |
| 21 | + * This program is distributed in the hope that it will be useful, but |
| 22 | + * WITHOUT ANY WARRANTY; without even the implied warranty of |
| 23 | + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
| 24 | + * See the GNU General Public License, version 2.0, for more details. |
| 25 | + * |
| 26 | + * You should have received a copy of the GNU General Public License |
| 27 | + * along with this program; if not, write to the Free Software Foundation, Inc., |
| 28 | + * 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA |
| 29 | + */ |
| 30 | + |
| 31 | +import { Expr } from '../DevAPI/Expr'; |
| 32 | + |
| 33 | +/** |
| 34 | + * A JavaScript string to identify the column name while selecting records. |
| 35 | + */ |
| 36 | +type ProjectedSearchExprStr = string | Expr; |
| 37 | + |
| 38 | +/** |
| 39 | + * One or more `ProjectedSearchExprStr` instances. |
| 40 | + * As defined by the [`ProjectedSearchExprStrList`](https://dev.mysql.com/doc/x-devapi-userguide/en/crud-ebnf-other-definitions.html#crud-ebnf-projectedsearchexprstrlist) |
| 41 | + * EBNF definition. |
| 42 | + */ |
| 43 | +export type ProjectedSearchExprStrList = ProjectedSearchExprStr | ProjectedSearchExprStr[]; |
0 commit comments