1 // tawesoft.co.uk/go/sqlp 2 // 3 // Copyright © 2020 Tawesoft Ltd <open-source@tawesoft.co.uk> 4 // Copyright © 2020 Ben Golightly <ben@tawesoft.co.uk> 5 // 6 // Permission is hereby granted, free of charge, to any person obtaining a copy 7 // of this software and associated documentation files (the "Software"), to deal 8 // in the Software without restriction, including without limitation the rights 9 // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 10 // copies of the Software, and to permit persons to whom the Software is 11 // furnished to do so, subject to the following conditions: 12 // 13 // The above copyright notice and this permission notice shall be included in all 14 // copies or substantial portions of the Software. 15 // 16 // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 17 // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 18 // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 19 // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 20 // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 21 // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 22 // SOFTWARE. 23 24 // Package sqlp ("SQL-plus" or "squelp!") defines helpful interfaces and 25 // implements extra features for Go SQL database drivers. Specific driver 26 // extras are implemented in the subdirectories. 27 // 28 // Features 29 // 30 // * Open a SQLite database with foreign keys, UTF8 collation, etc. made easy 31 // to avoid copy+pasting the same boilerplate into each project. 32 // 33 // * "Missing" essentials like escaping an SQL column name 34 // (https://github.com/golang/go/issues/18478) or examining an SQL error for 35 // properties such as IsUniqueConstraintError when inserting duplicate items 36 // 37 // * Interfaces like Queryable which is implemented by all of sql.DB, sql.Tx 38 // and sql.Stmt, for performing queries regardless of if they are in a 39 // transaction or not. 40 // 41 // Driver extras 42 // 43 // * tawesoft.co.uk/go/sqlp/sqlite3 (mattn/go-sqlite3) 44 // 45 // Package Information 46 // 47 // License: MIT (see LICENSE.txt) 48 // 49 // Stable: candidate 50 // 51 // For more information, documentation, source code, examples, support, links, 52 // etc. please see https://www.tawesoft.co.uk/go and 53 // https://www.tawesoft.co.uk/go/sqlp 54 package sqlp // import "tawesoft.co.uk/go/sqlp" 55 56 // Code generated by internal. DO NOT EDIT. 57 // Instead, edit DESC.txt and run mkdocs.sh.