~N&      !"#$%None %&*:DRT-AThis type is used to determine how to update rows using MySQL's INSERT ON DUPLICATE KEY UPDATE functionality, exposed via ! in the 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 - 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 .; 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./?Internal function that opens a connection to the MySQL server.0jPrepare a query. We don't support prepared statements, but we'll do some client-side preprocessing here.11SQL code to be executed when inserting an entity.25Execute an statement that doesn't return any results.3lExecute an statement that does return results. The results are fetched all at once and stored into memory.4Helper to construct *s using 5.6Get the corresponding * ,& depending on the type of the column.7(Create the migration plan for the given 8 val.9Find 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 >s/ in the given table currently in the database.?.Get the information about a column in a table.@1Parse the type of column as returned by MySQL's INFORMATION_SCHEMA tables.A!getAlters allDefs tblName new old* finds out what needs to be changed from old to become new.BfindAlters newColumn oldColumns4 finds out what needs to be changed in the columns  oldColumns for  newColumn to be supported.CPrints the part of a  CREATE TABLE! statement about a given column.D Renders an E in MySQL's format.F3Render an action that must be done on the database.G.Render an action that must be done on a table.)/Render an action that must be done on a column.H1Escape 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 I8. This will prevent multiple queries, when one will do.WCopy the field into the database only if the value in the corresponding record is non-NULL. @since 2.6.2Copy the field into the database only if the value in the corresponding record is non-empty, where "empty" means the Monoid definition for J . Useful for K, L, M, 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!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 | | | +------+-------------+-------+----------+NThis 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.OVendored from  persistent.P Gets the Q for an R. Vendored from  persistent.M&'STUVWXYZ[\]^_`abcdef(g*+hConnection 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./0123467i9:;<j=?@ABCD maxlen"include character set information?FG)kHl !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.N3A 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.OmnP"#$  opqrstuvwxyz{|}~>.I      !"#$%&'()*+,-./0123456789:;<=>?8@ABCDEFGHIJKLMNORPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~Q,E !"  ! 5&'STUVWXYZ[\]^_`abcdef(g*+h/0123467i9:;<j=?@ABCDFG)kHl !NOmnP"#$      !"#$%&'()*+,-./01,23456789/:;<=,>?@ABCD,2EFGHIJK,-LMNO,PQRSTUVWRSXYZ[\]^,-_,>`'abcdefghhijkglmnopqr+stuvwx,yz,y{,|},|~,|,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,2,2E,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,, , , ,P ,P ,P,P,P,P,P,P,P,P,P,P,,,,,,,, ,!,",#,$,%&,%',%(,%),%*,%+,%,,%-,%.,%/,%0,%1,%2,%3,%4,%5,%6,%7,8,9,:,;,<,=,%>,%?,%@,%A,%B,%C,%D,%E,%F,%G,%H,%I,%J,%K,%L,%M,>N,>O,>P,>Q,>R,>S,>T,>U,>V,>W,>X,>Y,>Z,>[,>\,>],>^,>_,>`,>a,>b,>c,>d,>`,>e,>f,>g,>h,>i,>j,>k,>l,>m,>n,>o,>o,>p,>q,>r,>s,>t,>u,>v,>v,>w,>x,yz,y{,y|,y},y~,y~,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-_,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-n,-,-,-,-,-,-,-,-,-,-,-,-d/persistent-mysql-2.6.2.1-LxXlxpSf1zkIqFZmykfNlkDatabase.Persist.MySQL"mysql-0.1.4-4CBKXlxlkwFIHujCJjJN93Database.MySQL.BasedefaultSSLInfodefaultConnectInfo connectSSL connectPathconnectOptionsconnectDatabaseconnectPassword connectUser connectPort connectHost ConnectInfo sslCiphers sslCAPathsslCAsslCertsslKeySSLInfo SomeField MySQLConf myConnInfo myPoolSize withMySQLPoolcreateMySQLPool withMySQLConn mockMigrationinsertOnDuplicateKeyUpdatecopyUnlessNullcopyUnlessEmpty copyUnlessEqinsertManyOnDuplicateKeyUpdate$fPersistConfigMySQLConf$fFromJSONMySQLConf$fParamP$fShowMySQLConf CopyUnlessEq ColumnInfo AddReference showAlterGetterP'persistent-2.7.1-EcjaPryUGUCCBfJXqV52kkDatabase.Persist.Types.Base PersistValue)mysql-simple-0.4.4-3bIALObcyTyB4GmmoykqZoDatabase.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 escapeDBName$Database.Persist.Class.PersistUniqueupsertbaseGHC.Basemempty#text-1.2.2.2-KC7dWoG09dA1F6jKj5GSqhData.Text.InternalTextStringbytestring-0.10.8.1Data.ByteString.Internal ByteStringmkBulkInsertQuery mkUpdateTextupdateFieldDefFieldDefUpdate ciColumnType ciMaxLengthciNumericPrecisionciNumericScaleAlterDBAddTable AlterColumn AlterTableAddUniqueConstraintDropUniqueConstraint AlterColumn'ChangeAdd'DropDefault NoDefaultUpdate' DropReferenceaddTableudToPairrefName mockMigratecommaSeparated parenWrappedDatabase.Persist.SqltransactionUndotransactionSave(Database.Persist.Sql.Orphan.PersistQuerydecorateSQLWithLimitOffsetupdateWhereCountdeleteWhereCount(Database.Persist.Sql.Orphan.PersistStore fieldDBName getFieldName tableDBName getTableName fromSqlKeytoSqlKey withRawQueryDatabase.Persist.Sql.Runclose' withSqlConn askLogFunc createSqlPool withSqlPoolliftSqlPersistMPoolrunSqlPersistMPoolrunSqlPersistM runSqlConn runSqlPoolDatabase.Persist.Sql.MigrationmigraterunMigrationUnsaferunMigrationSilent runMigration getMigration showMigrationprintMigrationparseMigration'parseMigrationDatabase.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.PersistConfig PersistConfigPersistConfigBackendPersistConfigPool loadConfigapplyEnvcreatePoolConfigrunPool checkUnique replaceUnique getByValue onlyUniqueinsertUniqueEntityinsertByPersistUniqueReadgetByPersistUniqueWritedeleteBy insertUniqueupsertBy#Database.Persist.Class.PersistQueryselectKeysList selectList selectKeys selectSourcePersistQueryReadcountselectSourceRes selectFirst selectKeysResPersistQueryWrite updateWhere deleteWhere#Database.Persist.Class.PersistStore insertRecord getEntity insertEntity belongsToJust belongsTo getJustEntitygetJust liftPersistHasPersistBackend BaseBackendpersistBackendIsPersistBackendBackendCompatibleprojectBackendPersistRecordBackend ToBackendKey toBackendKeyfromBackendKeySqlWriteBackendKeySqlReadBackendKey SqlBackendKeyunSqlWriteBackendKeyunSqlReadBackendKeyunSqlBackendKey PersistCore BackendKeyPersistStoreReadgetPersistStoreWritedeleteinsertupdateinsert_ insertMany insertMany_insertEntityMany insertKeyrepsertreplace updateGetfromPersistValueJSONtoPersistValueJSONentityIdFromJSONentityIdToJSONkeyValueEntityFromJSONkeyValueEntityToJSON entityValuesUniqueKeyPersistEntityBackend 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