Skip to content

Commit

Permalink
Group methods in erlcass_nif
Browse files Browse the repository at this point in the history
  • Loading branch information
Silviu Caragea committed Oct 5, 2016
1 parent be05dc4 commit 20e7f55
Showing 1 changed file with 20 additions and 20 deletions.
40 changes: 20 additions & 20 deletions src/erlcass_nif.erl
Original file line number Diff line number Diff line change
Expand Up @@ -8,23 +8,23 @@
-on_load(load_nif/0).

-export([
cass_cluster_create/0,
cass_cluster_release/0,
cass_log_set_level/1,
cass_log_set_callback/1,
cass_cluster_create/0,
cass_cluster_release/0,
cass_cluster_set_options/1,
cass_session_new/0,
cass_session_connect/2,
cass_session_connect_keyspace/3,
cass_session_close/1,
cass_session_prepare/3,
cass_prepared_bind/1,
cass_statement_new/2,
cass_statement_new/1,
cass_statement_bind_parameters/3,
cass_session_execute/4,
cass_session_execute_batch/5,
cass_session_get_metrics/1,
cass_prepared_bind/1,
cass_statement_new/1,
cass_statement_new/2,
cass_statement_bind_parameters/3,
cass_uuid_gen_new/0,
cass_uuid_gen_time/0,
cass_uuid_gen_random/0,
Expand All @@ -33,8 +33,8 @@
cass_uuid_max_from_time/1,
cass_uuid_timestamp/1,
cass_uuid_version/1,
cass_date_from_epoch/1,
cass_time_from_epoch/1,
cass_date_from_epoch/1,
cass_date_time_to_epoch/2
]).

Expand All @@ -61,16 +61,16 @@ get_priv_dir() ->
not_loaded(Line) ->
erlang:nif_error({not_loaded, [{module, ?MODULE}, {line, Line}]}).

cass_cluster_create() ->
cass_log_set_level(_Level) ->
?NOT_LOADED.

cass_cluster_release() ->
cass_log_set_callback(_LogPid) ->
?NOT_LOADED.

cass_log_set_callback(_LogPid) ->
cass_cluster_create() ->
?NOT_LOADED.

cass_log_set_level(_Level) ->
cass_cluster_release() ->
?NOT_LOADED.

cass_cluster_set_options(_OptionList) ->
Expand All @@ -91,25 +91,25 @@ cass_session_close(_SessionRef) ->
cass_session_prepare(_SessionRef, _Query, _Info) ->
?NOT_LOADED.

cass_prepared_bind(_PrepStatementRef) ->
cass_session_execute(_SessionRef, _StatementRef, _FromPid, _Tag) ->
?NOT_LOADED.

cass_statement_new(_Query, _Params) ->
cass_session_execute_batch(_SessionRef, _BatchType, _StmList, _Options, _Pid) ->
?NOT_LOADED.

cass_statement_new(_Query) ->
cass_session_get_metrics(_SessionRef) ->
?NOT_LOADED.

cass_statement_bind_parameters(_StatementRef, _BindType, _Args)->
cass_prepared_bind(_PrepStatementRef) ->
?NOT_LOADED.

cass_session_execute(_SessionRef, _StatementRef, _FromPid, _Tag) ->
cass_statement_new(_Query) ->
?NOT_LOADED.

cass_session_execute_batch(_SessionRef, _BatchType, _StmList, _Options, _Pid) ->
cass_statement_new(_Query, _Params) ->
?NOT_LOADED.

cass_session_get_metrics(_SessionRef) ->
cass_statement_bind_parameters(_StatementRef, _BindType, _Args)->
?NOT_LOADED.

cass_uuid_gen_new() ->
Expand All @@ -136,10 +136,10 @@ cass_uuid_timestamp(_Uuid) ->
cass_uuid_version(_Uuid) ->
?NOT_LOADED.

cass_date_from_epoch(_EpochSecs) ->
cass_time_from_epoch(_EpochSecs) ->
?NOT_LOADED.

cass_time_from_epoch(_EpochSecs) ->
cass_date_from_epoch(_EpochSecs) ->
?NOT_LOADED.

cass_date_time_to_epoch(_Date, _Time) ->
Expand Down

0 comments on commit 20e7f55

Please sign in to comment.