create_collation_v2 method

int create_collation_v2(
  1. PtrSqlite3 arg1,
  2. String zName,
  3. int eTextRep,
  4. PtrVoid pArg,
  5. PtrDefxCompare xCompare,
  6. PtrDefxFree xDestroy,
)
inherited

Implementation

int create_collation_v2(PtrSqlite3 arg1, String zName, int eTextRep, PtrVoid pArg,
    PtrDefxCompare xCompare, PtrDefxFree xDestroy) {
  if (libVersionNumber < 3004000) {
    throw dbsql.DatabaseException(
        'API sqlite3_create_collation_v2 is not available before 3.4.0');
  }
  final zNameMeta = zName._metaNativeUtf8();
  final ptrZName = zNameMeta.ptr;
  try {
    return _h_sqlite3_create_collation_v2!(arg1, ptrZName, eTextRep, pArg, xCompare, xDestroy);
  } finally {
    pkgffi.malloc.free(ptrZName);
  }
}