1 /* 2 * Copyright (C) 2017 The Android Open Source Project 3 * 4 * Licensed under the Apache License, Version 2.0 (the "License"); 5 * you may not use this file except in compliance with the License. 6 * You may obtain a copy of the License at 7 * 8 * http://www.apache.org/licenses/LICENSE-2.0 9 * 10 * Unless required by applicable law or agreed to in writing, software 11 * distributed under the License is distributed on an "AS IS" BASIS, 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 * See the License for the specific language governing permissions and 14 * limitations under the License. 15 */ 16 17 package androidx.room 18 19 /** 20 * Skips database verification for the annotated element. 21 * 22 * If it is a class annotated with [Database], none of the queries for the database will be verified 23 * at compile time. 24 * 25 * If it is a class annotated with [Dao], none of the queries in the Dao class will be verified at 26 * compile time. 27 * 28 * If it is a method in a Dao class, just the method's sql verification will be skipped. 29 * 30 * If it is a class annotated with [DatabaseView], the SELECT SQL for creating the view will not be 31 * verified at compile time. 32 * 33 * You should use this as the last resort if Room cannot properly understand your query and you are 34 * 100% sure it works. Removing validation may limit the functionality of Room since it won't be 35 * able to understand the query response. 36 */ 37 @Target(AnnotationTarget.FUNCTION, AnnotationTarget.CLASS) 38 @Retention(AnnotationRetention.BINARY) 39 public annotation class SkipQueryVerification 40