enigma 0.0.4

  • README.md
  • CHANGELOG.md
  • Installing
  • Versions
  • new50

Enigma-dart - cross-platform (for use in server and browser), fully typed dart client for Qlik Assosiative Engine

Examples are

To run examples you must accept the Qlik Core EULA by setting the ACCEPT_EULA environment variable and run qlikcore/engine

$ ACCEPT_EULA=yes docker-compose up -d

Simple example:


import 'package:web_socket_channel/io.dart';
import 'package:enigma/enigma.dart';

const loadScript = '''
TempTable:
Load
RecNo() as ID,
Rand() as Value
AutoGenerate 100
''';

main() async {  
  var channel = new IOWebSocketChannel.connect('ws://localhost:19076/app');
  var enigma = new Enigma(channel);
  var global = enigma.open();
  var doc = await global.createSessionApp();
  await doc.setScript(loadScript);
  await doc.doReload();
  var properties = new GenericObjectProperties((b) => b
    ..info.type = 'my-straight-hypercube'
    ..hyperCubeDef
        .dimensions
        .add(new NxDimension((b) => b..def.fieldDefs.add('ID')))
    ..hyperCubeDef
        .measures
        .add(new NxMeasure((b) => b..def.def = '=Sum(Value)'))
    ..hyperCubeDef.initialDataFetch.add(new NxPage((b) => b
      ..height = 5
      ..width = 2)));
  var object = await doc.createObject(properties);
  var layout = await object.getLayout();
  print('Hypercube data pages: ${layout.hyperCube.dataPages}');
  await object.selectHyperCubeCells('/qHyperCubeDef', [0, 2, 4], [0]);
  print('After selection (notice the `qState` values)');
  layout = await object.getLayout();
  print('Hypercube data pages: ${layout.hyperCube.dataPages}');

  await enigma.close();
}

Changelog

0.0.1

  • Initial version, created by Stagehand

Use this package as a library

1. Depend on it

Add this to your package's pubspec.yaml file:


dependencies:
  enigma: "^0.0.4"

2. Install it

You can install packages from the command line:

with pub:


$ pub get

with Flutter:


$ flutter packages get

Alternatively, your editor might support pub get or flutter packages get. Check the docs for your editor to learn more.

3. Import it

Now in your Dart code, you can use:


      import 'package:enigma/enigma.dart';
  
Version Uploaded Documentation Archive
0.0.4 May 11, 2018 Go to the documentation of enigma 0.0.4 Download enigma 0.0.4 archive
0.0.3 May 5, 2018 Go to the documentation of enigma 0.0.3 Download enigma 0.0.3 archive
0.0.2 May 2, 2018 Go to the documentation of enigma 0.0.2 Download enigma 0.0.2 archive

Analysis

We analyzed this package on May 22, 2018, and provided a score, details, and suggestions below. Analysis was completed with status completed using:

  • Dart: 2.0.0-dev.54.0
  • pana: 0.11.1

Scores

Popularity:
Describes how popular the package is relative to other packages. [more]
0 / 100
Health:
Code health derived from static analysis. [more]
100 / 100
Maintenance:
Reflects how tidy and up-to-date the package is. [more]
99 / 100
Overall score:
Weighted score of the above. [more]
50
Learn more about scoring.

Platforms

Detected platforms: Flutter, other

Primary library: package:enigma/enigma.dart with components: isolate.

Suggestions

  • Fix analysis and formatting issues.

    Analysis or formatting checks reported 91 hints.

    Run dartfmt to format lib/enigma.dart.

    Run dartfmt to format lib/src/enigma/base_service.dart.

    Similar analysis of the following files failed:

    • lib/src/enigma/enigma.dart (hint)
    • lib/src/extra_models/check_expression_result.dart (hint)
    • lib/src/extra_models/create_app_result.dart (hint)
    • lib/src/extra_models/export_data_result.dart (hint)
    • lib/src/extra_models/get_hyper_cube_continuous_data_result.dart (hint)
    • lib/src/extra_models/get_tables_and_keys_result.dart (hint)
    • lib/src/models/generic_object_entry.dart (hint)
    • lib/src/models/nx_pivot_dimension_cell.dart (hint)
    • lib/src/models/nx_stacked_pivot_cell.dart (hint)
    • lib/src/models/nx_tree_node.dart (hint)
    • lib/src/services/doc.dart (hint)
    • lib/src/services/field.dart (hint)
    • lib/src/services/generic_bookmark.dart (hint)
    • lib/src/services/generic_dimension.dart (hint)
    • lib/src/services/generic_measure.dart (hint)
    • lib/src/services/generic_object.dart (hint)
    • lib/src/services/generic_variable.dart (hint)
    • lib/src/services/global.dart (hint)
    • lib/src/services/variable.dart (hint)
  • The description is too short.

    Add more detail about the package, what it does and what is its target use case. Try to write at least 60 characters.

  • Package is pre-v1 release.

    While there is nothing inherently wrong with versions of 0.*.*, it usually means that the author is still experimenting with the general direction API.

  • Maintain an example.

    None of the files in your example/ directory matches a known example patterns. Common file name patterns include: main.dart, example.dart or you could also use enigma.dart.

Dependencies

Package Constraint Resolved Available
Direct dependencies
Dart SDK >=1.20.1 <2.0.0
built_collection >=2.0.0 <4.0.0 3.1.1
built_value ^5.4.3 5.4.4
logging ^0.11.3 0.11.3+1
path ^1.5.1 1.5.1
web_socket_channel ^1.0.7 1.0.7
Transitive dependencies
async 2.0.7
charcode 1.1.1
collection 1.14.9
convert 2.0.1
crypto 2.0.3
fixnum 0.10.7
matcher 0.12.2+1
meta 1.1.5
quiver 0.29.0+1
stack_trace 1.9.2
stream_channel 1.6.6
typed_data 1.1.5
Dev dependencies
build_runner ^0.8.5
built_value_generator ^5.4.3
recase ^1.0.0
test ^0.12.34