table_column_metadata method

int table_column_metadata(
  1. PtrSqlite3 db,
  2. String? zDbName,
  3. String zTableName,
  4. String? zColumnName,
  5. PtrPtrUtf8 pzDataType,
  6. PtrPtrUtf8 pzCollSeq,
  7. PtrInt32 pNotNull,
  8. PtrInt32 pPrimaryKey,
  9. PtrInt32 pAutoinc,
)
inherited

Implementation

int table_column_metadata(
    PtrSqlite3 db,
    String? zDbName,
    String zTableName,
    String? zColumnName,
    PtrPtrUtf8 pzDataType,
    PtrPtrUtf8 pzCollSeq,
    PtrInt32 pNotNull,
    PtrInt32 pPrimaryKey,
    PtrInt32 pAutoinc) {
  final zDbNameMeta = zDbName?._metaNativeUtf8();
  final ptrZDbName = zDbNameMeta?.ptr ?? ffi.nullptr;
  final zTableNameMeta = zTableName._metaNativeUtf8();
  final ptrZTableName = zTableNameMeta.ptr;
  final zColumnNameMeta = zColumnName?._metaNativeUtf8();
  final ptrZColumnName = zColumnNameMeta?.ptr ?? ffi.nullptr;
  try {
    return _h_sqlite3_table_column_metadata(db, ptrZDbName, ptrZTableName, ptrZColumnName,
        pzDataType, pzCollSeq, pNotNull, pPrimaryKey, pAutoinc);
  } finally {
    pkgffi.malloc.free(ptrZDbName);
    pkgffi.malloc.free(ptrZTableName);
    pkgffi.malloc.free(ptrZColumnName);
  }
}