M (      !"#$%&'None &'+<FTVdz / An alias for q. The type previously was only used to copy a single value, but was expanded to be handle more complex queries.AThis type is used to determine how to update rows using MySQL's "INSERT ... ON DUPLICATE KEY UPDATE functionality, exposed via # in this library.((Copy the field directly from the record.)=Only copy the field if it is not equal to the provided value.;Information required to connect to a MySQL database using  persistentE's generic facilities. These values are the same that are given to .The connection information.;How many connections should be held on the connection pool.**Extra column information from MySQL schema+See the definition of the ,+ function to see how these fields are used.-Getter aA is a function that converts an incoming value into a data type a..newtype around / that supports the 0 type class.Create a MySQL connection pool and run the given action. The pool is properly released after the action finishes using it. Note that you should not use the given 1; outside the action since it may be already been released.Create a MySQL connection pool. Note that it's your responsibility to properly close the connection pool when unneeded. Use  for automatic resource control.Same as O, but instead of opening a pool of connections, only one connection is opened.2?Internal function that opens a connection to the MySQL server.3jPrepare a query. We don't support prepared statements, but we'll do some client-side preprocessing here.41SQL code to be executed when inserting an entity.55Execute an statement that doesn't return any results.6lExecute an statement that does return results. The results are fetched all at once and stored into memory.7Helper to construct -s using 8.9Get the corresponding - /& depending on the type of the column.:(Create the migration plan for the given ; val.<Find out the type of a column.=0Find out the maxlen of a column (default to 200)>Find out the maxlen of a field? Helper for +; that finds out the which primary key columns to reference.@Returns all of the As/ in the given table currently in the database.B.Get the information about a column in a table.C1Parse the type of column as returned by MySQL's INFORMATION_SCHEMA tables.D!getAlters allDefs tblName new old* finds out what needs to be changed from old to become new.EfindAlters newColumn oldColumns4 finds out what needs to be changed in the columns  oldColumns for  newColumn to be supported.FPrints the part of a  CREATE TABLE! statement about a given column.G Renders an H in MySQL's format.I3Render an action that must be done on the database.J.Render an action that must be done on a table.,/Render an action that must be done on a column.K1Escape a database name to be included on a query.Mock a migration even when the database is not present. This function will mock the migration for a database even when the actual database isn't already present in the system.MySQL specific upsert_. This will prevent multiple queries, when one will do. The record will be inserted into the database. In the event that the record already exists in the database, the record will have the relevant updates performed.WCopy the field into the database only if the value in the corresponding record is non-NULL. @since 2.6.2 Copy the field into the database only if the value in the corresponding record is non-empty, where "empty" means the Monoid definition for L . Useful for M, N, O, etc.The resulting  type is useful for the # function. @since 2.6.2!Copy the field into the database only if the field is not equal to the provided value. This is useful to avoid copying weird nullary data into the database.The resulting  type is useful for the # function. @since 2.6.2"(Copy the field directly from the record.#Do a bulk insert on the given records in the first parameter. In the event that a key conflicts with a record currently in the database, the second and third parameters determine what will happen.The second parameter is a list of fields to copy from the original value. This allows you to specify which fields to copy from the record you're trying to insert into the database to the preexisting row.The third parameter is a list of updates to perform that are independent of the value that is provided. You can use this to increment a counter value. These updates only occur if the original record is present in the database.More details on  usageThe [] parameter allows you to specify which fields (and under which conditions) will be copied from the inserted rows. For a brief example, consider the following data model and existing data set: nItem name Text description Text price Double Maybe quantity Int Maybe Primary name  items: +------+-------------+-------+----------+ | name | description | price | quantity | +------+-------------+-------+----------+ | foo | very good | | 3 | | bar | | 3.99 | | +------+-------------+-------+----------+-This record type has a single natural key on itemNamea. Let's suppose that we download a CSV of new items to store into the database. Here's our CSV: Hname,description,price,quantity foo,,2.50,6 bar,even better,,5 yes,wow,,-We parse that into a list of Haskell records: records = [ Item { itemName = "foo", itemDescription = "" , itemPrice = Just 2.50, itemQuantity = Just 6 } , Item "bar" "even better" Nothing (Just 5) , Item "yes" "wow" Nothing Nothing ] .The new CSV data is partial. It only includes updates from the upstream vendor. Our CSV library parses the missing description field as an empty string. We don't want to override the existing description. So we can use the  : function to say: "Don't update when the value is empty."Likewise, the new row for bark includes a quantity, but no price. We do not want to overwrite the existing price in the database with a NULL value. So we can use & to only copy the existing values in."The final code looks like this:  # records [   ItemDescription ,  ItemPrice ,  ItemQuantity ] [] HOnce we run that code on the datahase, the new data set looks like this: ,items: +------+-------------+-------+----------+ | name | description | price | quantity | +------+-------------+-------+----------+ | foo | very good | 2.50 | 6 | | bar | even better | 3.99 | 5 | | yes | wow | | | +------+-------------+-------+----------+PThis creates the query for bulkInsertOnDuplicateKeyUpdate. If you provide an empty list of updates to perform, then it will generate a dummy/no-op update using the first field of the record. This avoids duplicate key exceptions.QVendored from  persistent.R Gets the S for an T. Vendored from  persistent.Connection information.2Number of connections to be kept open in the pool.4Action to be executed that uses the connection pool.Connection information.2Number of connections to be kept open in the pool.Connection information./Action to be executed that uses the connection.G maxlen"include character set information?#3A list of the records you want to insert, or update+A list of the fields you want to copy over.RA list of the updates to apply that aren't dependent on the record being inserted.P3A list of the records you want to insert, or update+A list of the fields you want to copy over.RA list of the updates to apply that aren't dependent on the record being inserted.  UVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~A1      !;"#$%&'()*+,-./01T23456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstSuvwxyz{|}~/H !"#$  #" !()*+.      !"#$%&'()*+,-./01234/56789:;<2=>?@/ABCDEFG/5HIJKLMN/0OPQRSTUVWXSTYZ[\]^_/0`/Aa/bc/bd/ef/eg/eh/ei/ej/ek/el/em/en/op/oq/or/st/su/vw/vx/vy/vz/v{/v|/v}/~/~/~/~/~/~/~/~/~/~/////////////////////////////////5/5H/5/5/5/5/5/5/5/5/5/5/5/5/5/5/5/5/5/5/5/////////////////////////////////////////////////////////////////////// / /  /  / / / / / / / / / / / / / / / / /v/v/v /v!/v"/v#/ $/ %/ &/ '/ (/ )/ */ +/ ,/ -/ ./ // 0/ 1/ 2/ 3/A4/A5/A6/A7/A8/A9/A:/A;/A</A=/A>/A?/A@/AA/AB/AC/AD/AE/AF/AG/AH/AI/AJ/Aa/AK/AL/AM/AN/AO/AP/AQ/AR/AS/AT/AU/AU/AV/AW/AX/AY/AZ/A[/A\/A\/A]/A^/_`/_a/_b/_c/_d/_d/0e/0f/0g/0h/0i/0j/0k/0l/0m/0n/0o/0p/0q/0r/0s/0s/0t/0u/0v/0w/0x/0y/0z/0{/0|/0}/0~/0/0/0/0/0/0/0/0/0/0/0/0`/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0/0T/0/0/0/0/0/0/0/0/0/0/0/0J///////*.-persistent-mysql-2.8.0-J0XM7h5aIAw2C8XRV34sbXDatabase.Persist.MySQL"mysql-0.1.4-DtTBYRssX267zKtFGsHuQgDatabase.MySQL.BasedefaultSSLInfodefaultConnectInfo connectSSL connectPathconnectOptionsconnectDatabaseconnectPassword connectUser connectPort connectHost ConnectInfo sslCiphers sslCAPathsslCAsslCertsslKeySSLInfo SomeFieldHandleUpdateCollision MySQLConf myConnInfo myPoolSize withMySQLPoolcreateMySQLPool withMySQLConn mockMigrationinsertOnDuplicateKeyUpdatecopyUnlessNullcopyUnlessEmpty copyUnlessEq copyFieldinsertManyOnDuplicateKeyUpdate$fParamP$fPersistConfigMySQLConf$fFromJSONMySQLConf$fShowMySQLConf CopyField CopyUnlessEq ColumnInfo AddReference showAlterGetterP'persistent-2.8.0-HfkwZTOeE0k30kzwkZGyboDatabase.Persist.Types.Base PersistValue)mysql-simple-0.4.4-ErrHWNoNtcGDrwJqsK6l6bDatabase.MySQL.Simple.ParamParamDatabase.Persist.Sql.TypesConnectionPoolopen'prepare' insertSql'execute' withStmt' convertPVDatabase.MySQL.Simple.ResultResult getGettermigrate'$Database.Persist.Class.PersistEntity PersistEntityfindTypeOfColumnfindMaxLenOfColumnfindMaxLenOfField addReference getColumnsColumn getColumnparseColumnType getAlters findAlters showColumn showSqlTypeSqlType showAlterDbshowAlterTable escapeDBNamebaseGHC.Basemempty#text-1.2.2.2-EakMpasry3jA6OIwSZhq9MData.Text.InternalTextStringbytestring-0.10.8.2Data.ByteString.Internal ByteStringmkBulkInsertQuery mkUpdateTextupdateFieldDefFieldDefUpdateDatabase.Persist.SqltransactionUndotransactionSaveDatabase.Persist.Sql.MigrationmigraterunMigrationUnsaferunMigrationSilent runMigration getMigration showMigrationprintMigrationparseMigration'parseMigration(Database.Persist.Sql.Orphan.PersistQuerydecorateSQLWithLimitOffsetupdateWhereCountdeleteWhereCountDatabase.Persist.Sql.Raw.QQ executeQQsqlQQ(Database.Persist.Sql.Orphan.PersistStore fieldDBName getFieldName tableDBName getTableName fromSqlKeytoSqlKey withRawQueryDatabase.Persist.Sql.Runclose' withSqlConn askLogFunc createSqlPool withSqlPoolliftSqlPersistMPoolrunSqlPersistMPoolrunSqlPersistM runSqlConn runSqlPoolDatabase.Persist.Sql.RawrawSql getStmtConnrawExecuteCount rawExecute rawQueryResrawQueryDatabase.Persist.Sql.ClassRawSql rawSqlColsrawSqlColCountReasonrawSqlProcessRowPersistFieldSqlsqlTypeDatabase.PersistlimitOffsetOrder toJsonText mapToJSON listToJSON||./<-.<-.>=.>.<=.<.!=.==./=.*=.-=.+=.=.Database.Persist.Sql.Internal mkColumnsdefaultAttribute ConnectioncNamecNullcSqlTypecDefaultcDefaultConstraintNamecMaxLen cReferencePersistentSqlExceptionStatementAlreadyFinalizedCouldn'tGetSQLConnection SqlPersistT SqlPersist SqlPersistMSqlCautiousMigration MigrationSingleunSingle#Database.Persist.Sql.Types.Internal readToUnknown readToWritewriteToUnknownLogFuncInsertSqlResult ISRSingle ISRInsertGet ISRManyKeys Statement stmtFinalize stmtReset stmtExecute stmtQuery SqlBackend connClose connPrepare connInsertSqlconnInsertManySql connUpsertSql connStmtMapconnMigrateSql connBegin connCommit connRollbackconnEscapeName connNoLimit connRDBMSconnLimitOffset connLogFunc connMaxParamsSqlReadBackendunSqlReadBackendSqlWriteBackendunSqlWriteBackendSqlBackendCanReadSqlBackendCanWriteSqlReadT SqlWriteT IsSqlBackendDatabase.Persist.Class PersistUnique PersistQuery PersistStore$Database.Persist.Class.DeleteCascadedeleteCascadeWhere DeleteCascade deleteCascade#Database.Persist.Class.PersistQueryselectKeysList selectList selectKeys selectSourcePersistQueryReadcountselectSourceRes selectFirst selectKeysResPersistQueryWrite updateWhere deleteWhere$Database.Persist.Class.PersistUnique checkUnique replaceUnique getByValue onlyUniqueinsertUniqueEntityinsertByPersistUniqueReadgetByPersistUniqueWritedeleteBy insertUniqueupsertupsertBy#Database.Persist.Class.PersistStore insertRecord getEntity insertEntity belongsToJust belongsTo getJustEntitygetJust liftPersistHasPersistBackend BaseBackendpersistBackendIsPersistBackendBackendCompatibleprojectBackendPersistRecordBackend ToBackendKey toBackendKeyfromBackendKey SqlBackendKeySqlReadBackendKeySqlWriteBackendKeyunSqlBackendKeyunSqlReadBackendKeyunSqlWriteBackendKey PersistCore BackendKeyPersistStoreReadgetPersistStoreWritedeleteinsertupdateinsert_ insertMany insertMany_insertEntityMany insertKeyrepsertreplace updateGetfromPersistValueJSONtoPersistValueJSONentityIdFromJSONentityIdToJSONkeyValueEntityFromJSONkeyValueEntityToJSON entityValuesKeyUniquePersistEntityBackend EntityField keyToValues keyFromValuespersistIdField entityDefpersistFieldDeftoPersistFieldsfromPersistValuespersistUniqueKeyspersistUniqueToFieldNamespersistUniqueToValues fieldLensBackendSpecificUpdate BackendUpdate updateField updateValue updateUpdate SelectOptAscDescOffsetByLimitToBackendSpecificFilterFilter FilterAndFilterOr BackendFilter filterField filterValue filterFilterEntity entityKey entityVal#Database.Persist.Class.PersistField getPersistMap PersistFieldtoPersistValuefromPersistValueSomePersistFieldfromPersistValueTexttoEmbedEntityDefkeyAndEntityFieldsentityKeyFields entityPrimary CheckmarkActiveInactive IsNullableNullable NotNullable WhyNullable ByMaybeAttrByNullableAttr EntityDef entityHaskellentityDBentityId entityAttrs entityFields entityUniquesentityForeigns entityDerives entityExtra entitySum ExtraLine HaskellName unHaskellNameDBNameunDBNameAttr FieldType FTTypeConFTAppFTListfieldDB fieldType fieldHaskell fieldSqlType fieldAttrs fieldStrictfieldReference ReferenceDef NoReference ForeignRefEmbedRef CompositeRef SelfReferenceEmbedEntityDefembeddedHaskellembeddedFields EmbedFieldDef emFieldDB emFieldEmbed emFieldCycle UniqueDef uniqueHaskell uniqueDBName uniqueFields uniqueAttrs CompositeDefcompositeFieldscompositeAttrsForeignFieldDef ForeignDefforeignRefTableHaskellforeignRefTableDBNameforeignConstraintNameHaskellforeignConstraintNameDBName foreignFields foreignAttrsforeignNullablePersistException PersistErrorPersistMarshalErrorPersistInvalidFieldPersistForeignConstraintUnmetPersistMongoDBErrorPersistMongoDBUnsupported PersistTextPersistByteString PersistInt64 PersistDoublePersistRational PersistBool PersistDayPersistTimeOfDayPersistUTCTime PersistNull PersistList PersistMapPersistObjectIdPersistDbSpecific SqlStringSqlInt32SqlInt64SqlReal SqlNumericSqlBoolSqlDaySqlTime SqlDayTimeSqlBlobSqlOther PersistFilterEqInNeGtLtGeLeNotInUpdateException KeyNotFound UpsertErrorOnlyUniqueException PersistUpdateAssignAddSubtractMultiplyDivide$Database.Persist.Class.PersistConfig PersistConfigPersistConfigBackendPersistConfigPool loadConfigapplyEnvcreatePoolConfigrunPool ciColumnType ciMaxLengthciNumericPrecisionciNumericScaleAlterDBAddTable AlterColumn AlterTableAddUniqueConstraintDropUniqueConstraintChangeAdd'DropDefault NoDefaultUpdate' DropReference